mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5455 Use openmp for nodal gradients calculation.
This commit is contained in:
@@ -1136,6 +1136,7 @@ RigFemScalarResultFrames* RigFemPartResultsCollection::calculateNodalGradients(
|
||||
|
||||
int elementCount = femPart->elementCount();
|
||||
|
||||
#pragma omp parallel for schedule( dynamic )
|
||||
for ( long nodeIdx = 0; nodeIdx < static_cast<long>( nodeCount ); nodeIdx++ )
|
||||
{
|
||||
const std::vector<int> elements = femPart->elementsUsingNode( nodeIdx );
|
||||
|
||||
Reference in New Issue
Block a user