mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Check if scalar result index is valid
This commit is contained in:
@@ -606,7 +606,7 @@ std::vector<double> RimGridCalculation::getActiveCellValues( const QString&
|
||||
|
||||
auto eclipseCaseData = sourceCase->eclipseCaseData();
|
||||
auto rigCaseCellResultsData = eclipseCaseData->results( porosityModel );
|
||||
if ( !rigCaseCellResultsData->findOrLoadKnownScalarResultForTimeStep( resAddr, timeStepToUse ) ) return {};
|
||||
if ( rigCaseCellResultsData->findOrLoadKnownScalarResultForTimeStep( resAddr, timeStepToUse ) == cvf::UNDEFINED_SIZE_T ) return {};
|
||||
|
||||
// Active cell info must always be retrieved from the destination case, as the returned vector must be of the same size as
|
||||
// number of active cells in the destination case. Active cells can be different between source and destination case.
|
||||
|
||||
Reference in New Issue
Block a user