mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-23 23:13:39 -06:00
#2717 Compaction: Use OpenMP for calculation
This commit is contained in:
parent
7a7a8bed0e
commit
085a3ea18a
@ -1470,7 +1470,17 @@ RigFemScalarResultFrames* RigFemPartResultsCollection::calculateCompactionValues
|
||||
frameCountProgress.incrementProgress();
|
||||
|
||||
compactionFrame.resize(nodeCount);
|
||||
for (size_t n = 0; n < nodeCount; n++)
|
||||
|
||||
// Make sure the AABB-tree is created before using OpenMP
|
||||
{
|
||||
cvf::BoundingBox bb;
|
||||
std::vector<size_t> refElementCandidates;
|
||||
|
||||
part->findIntersectingCells(bb, &refElementCandidates);
|
||||
}
|
||||
|
||||
#pragma omp parallel for
|
||||
for (long n = 0; n < nodeCount; n++)
|
||||
{
|
||||
RefElement refElement;
|
||||
findReferenceElementForNode(*part, n, resVarAddr.refKLayerIndex, &refElement);
|
||||
|
Loading…
Reference in New Issue
Block a user