mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#8034 Use omp for index result calculation.
This commit is contained in:
parent
66852c4dad
commit
51808d5ba7
@ -2072,9 +2072,12 @@ void RigCaseCellResultsData::computeIndexResults()
|
||||
}
|
||||
}
|
||||
|
||||
for ( size_t cellIdx = 0; cellIdx < m_ownerMainGrid->globalCellArray().size(); cellIdx++ )
|
||||
const std::vector<RigCell>& globalCellArray = m_ownerMainGrid->globalCellArray();
|
||||
long long numCells = static_cast<long long>( globalCellArray.size() );
|
||||
#pragma omp for
|
||||
for ( long long cellIdx = 0; cellIdx < numCells; cellIdx++ )
|
||||
{
|
||||
const RigCell& cell = m_ownerMainGrid->globalCellArray()[cellIdx];
|
||||
const RigCell& cell = globalCellArray[cellIdx];
|
||||
|
||||
size_t resultIndex = cellIdx;
|
||||
if ( resultIndex == cvf::UNDEFINED_SIZE_T ) continue;
|
||||
|
Loading…
Reference in New Issue
Block a user