Skip to content

Commit

Permalink
Performance: Compute depth related results in parallell
Browse files Browse the repository at this point in the history
  • Loading branch information
magnesj committed Dec 20, 2023
1 parent 69b40b9 commit 47a7760
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down

0 comments on commit 47a7760

Please sign in to comment.