mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
OpenMP : Make sure grid is created before using OpenMP
This commit is contained in:
parent
9560e23b66
commit
090435a2ea
@ -1487,12 +1487,15 @@ RigFemScalarResultFrames* RigFemPartResultsCollection::calculateCompactionValues
|
||||
|
||||
compactionFrame.resize(nodeCount);
|
||||
|
||||
// Make sure the AABB-tree is created before using OpenMP
|
||||
{
|
||||
// Make sure the AABB-tree is created before using OpenMP
|
||||
cvf::BoundingBox bb;
|
||||
std::vector<size_t> refElementCandidates;
|
||||
|
||||
part->findIntersectingCells(bb, &refElementCandidates);
|
||||
|
||||
// Also make sure the struct grid is created, as this is required before using OpenMP
|
||||
part->structGrid();
|
||||
}
|
||||
|
||||
#pragma omp parallel for
|
||||
|
Loading…
Reference in New Issue
Block a user