Use guided openmp for loop

This commit is contained in:
Gaute Lindkvist 2020-05-13 10:40:39 +02:00 committed by Magne Sjaastad
parent ec2a924767
commit 7674e87359

View File

@ -179,7 +179,7 @@ RigConnectionContainer RigCellFaceGeometryTools::computeOtherNncs( const RigMain
#pragma omp parallel
{
RigConnectionContainer threadConnections;
#pragma omp for
#pragma omp for schedule( guided )
for ( int faceIdx = 0; faceIdx < static_cast<int>( faultFaces.size() ); faceIdx++ )
{
const RigFault::FaultFace& f = faultFaces[faceIdx];