mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 08:25:03 -05:00
Check if scalar result index is valid
This commit is contained in:
1 parent
65a2d9e7b9
commit
caaba8b2af
1 file changed
+1
-1
@@ -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