mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-08 23:23:01 -06:00
Performance: Move bool outside cell loop
This commit is contained in:
parent
226ac4f2b6
commit
36e43ae85b
@ -67,8 +67,9 @@ private:
|
||||
return;
|
||||
}
|
||||
|
||||
const RigActiveCellInfo* actCellInfo = m_caseData->activeCellInfo();
|
||||
size_t cellCount = actCellInfo->reservoirCellCount();
|
||||
const RigActiveCellInfo* actCellInfo = m_caseData->activeCellInfo();
|
||||
size_t cellCount = actCellInfo->reservoirCellCount();
|
||||
bool isUsingGlobalActiveIndex = m_caseData->isUsingGlobalActiveIndex( m_resultAddress );
|
||||
|
||||
CVF_TIGHT_ASSERT( cellCount == m_cellVisibilities->size() );
|
||||
|
||||
@ -77,7 +78,7 @@ private:
|
||||
if ( !( *m_cellVisibilities )[cIdx] ) continue;
|
||||
|
||||
size_t cellResultIndex = cIdx;
|
||||
if ( m_caseData->isUsingGlobalActiveIndex( m_resultAddress ) )
|
||||
if ( isUsingGlobalActiveIndex )
|
||||
{
|
||||
cellResultIndex = actCellInfo->cellResultIndex( cIdx );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user