mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Streamlines : Avoid load of a single step
If only one time step is loaded, all other logic must be able to handle this situation. Load data for all time steps when asking for flow related data Use absolute value when comparing flow values
This commit is contained in:
@@ -1237,13 +1237,16 @@ size_t RigCaseCellResultsData::findOrLoadKnownScalarResult( const RigEclipseResu
|
||||
|
||||
if ( resVarAddr.isDivideByCellFaceAreaActive() )
|
||||
{
|
||||
if ( !RigCaseCellResultCalculator::computeDivideByCellFaceArea( m_ownerMainGrid,
|
||||
this->m_ownerCaseData,
|
||||
m_porosityModel,
|
||||
resVarAddr ) )
|
||||
|
||||
if ( !isDataPresent( scalarResultIndex ) )
|
||||
{
|
||||
return cvf::UNDEFINED_SIZE_T;
|
||||
if ( !RigCaseCellResultCalculator::computeDivideByCellFaceArea( m_ownerMainGrid,
|
||||
this->m_ownerCaseData,
|
||||
m_porosityModel,
|
||||
resVarAddr ) )
|
||||
|
||||
{
|
||||
return cvf::UNDEFINED_SIZE_T;
|
||||
}
|
||||
}
|
||||
|
||||
return scalarResultIndex;
|
||||
|
||||
Reference in New Issue
Block a user