[Mesh] Minor code update
Removal of unnecessary comparison. `QThread::idealThreadCount()` returns the ideal number of threads that the process can run in parallel or 1 if it fails to determine it.
This commit is contained in:
@@ -336,7 +336,7 @@ void MeshFastBuilder::Finish ()
|
||||
}
|
||||
|
||||
//std::sort(verts.begin(), verts.end());
|
||||
int threads = std::max(1, QThread::idealThreadCount());
|
||||
int threads = QThread::idealThreadCount();
|
||||
MeshCore::parallel_sort(verts.begin(), verts.end(), std::less<Private::Vertex>(), threads);
|
||||
|
||||
QVector<FacetIndex> indices(ulCtPts);
|
||||
|
||||
@@ -966,7 +966,7 @@ void MeshKernel::RebuildNeighbours (FacetIndex index)
|
||||
|
||||
// sort the edges
|
||||
//std::sort(edges.begin(), edges.end(), Edge_Less());
|
||||
int threads = std::max(1, QThread::idealThreadCount());
|
||||
int threads = QThread::idealThreadCount();
|
||||
MeshCore::parallel_sort(edges.begin(), edges.end(), Edge_Less(), threads);
|
||||
|
||||
PointIndex p0 = POINT_INDEX_MAX, p1 = POINT_INDEX_MAX;
|
||||
|
||||
Reference in New Issue
Block a user