mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Use guided openmp for loop
This commit is contained in:
parent
ec2a924767
commit
7674e87359
@ -179,7 +179,7 @@ RigConnectionContainer RigCellFaceGeometryTools::computeOtherNncs( const RigMain
|
|||||||
#pragma omp parallel
|
#pragma omp parallel
|
||||||
{
|
{
|
||||||
RigConnectionContainer threadConnections;
|
RigConnectionContainer threadConnections;
|
||||||
#pragma omp for
|
#pragma omp for schedule( guided )
|
||||||
for ( int faceIdx = 0; faceIdx < static_cast<int>( faultFaces.size() ); faceIdx++ )
|
for ( int faceIdx = 0; faceIdx < static_cast<int>( faultFaces.size() ); faceIdx++ )
|
||||||
{
|
{
|
||||||
const RigFault::FaultFace& f = faultFaces[faceIdx];
|
const RigFault::FaultFace& f = faultFaces[faceIdx];
|
||||||
|
Loading…
Reference in New Issue
Block a user