Performance: Compute depth related results in parallell

This commit is contained in:
Magne Sjaastad 2023-12-20 10:21:33 +01:00
parent df392e3faf
commit f677d6d600

View File

@ -1845,7 +1845,8 @@ void RigCaseCellResultsData::computeDepthRelatedResults()
}
}
for ( size_t cellIdx = 0; cellIdx < m_ownerMainGrid->globalCellArray().size(); cellIdx++ )
#pragma omp parallel for
for ( long cellIdx = 0; cellIdx < static_cast<long>( m_ownerMainGrid->globalCellArray().size() ); cellIdx++ )
{
const RigCell& cell = m_ownerMainGrid->globalCellArray()[cellIdx];