OpenMP : Make sure grid is created before using OpenMP

This commit is contained in:
Magne Sjaastad 2018-05-09 16:29:14 +02:00
parent 9560e23b66
commit 090435a2ea

View File

@ -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