mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Make sure we read data from file reader only when required
Use same pattern as for dynamic results.
This commit is contained in:
parent
91c82f0010
commit
1bee1d9bed
@ -1647,9 +1647,12 @@ size_t RigCaseCellResultsData::findOrLoadKnownScalarResultForTimeStep( const Rig
|
||||
m_cellScalarResults[scalarResultIndex].resize( 1 );
|
||||
|
||||
std::vector<double>& values = m_cellScalarResults[scalarResultIndex][0];
|
||||
if ( !m_readerInterface->staticResult( resultName, m_porosityModel, &values ) )
|
||||
if ( values.empty() )
|
||||
{
|
||||
resultLoadingSuccess = false;
|
||||
if ( !m_readerInterface->staticResult( resultName, m_porosityModel, &values ) )
|
||||
{
|
||||
resultLoadingSuccess = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user