Stop ResInsight from crashing when calculating cell volume (#8374)

* Stop ResInsight from crashing when calculating cell volume
This commit is contained in:
jonjenssen
2021-12-17 16:10:24 +01:00
committed by GitHub
parent 43f298fa97
commit 58f5c2e92b
6 changed files with 13 additions and 72 deletions

View File

@@ -251,7 +251,7 @@ protected:
m_resultValues = caseData->results( porosityModel )->modifiableCellScalarResult( resVarAddr, timeStepIndex );
if ( m_resultValues->empty() )
{
m_resultValues->resize( activeCellInfo->reservoirCellResultCount() );
m_resultValues->resize( activeCellInfo->reservoirActiveCellCount() );
}
m_cellCount = activeCellInfo->reservoirActiveCellCount();
}