mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5158 Grid Case Group: Allow statistics on static data only
Support grid cases with no dynamic data present.
This commit is contained in:
@@ -252,6 +252,12 @@ void RimEclipseStatisticsCase::computeStatistics()
|
||||
timeStepIndices.push_back( i );
|
||||
}
|
||||
|
||||
// If no dynamic data is present, we might end up with no time steps. Make sure we have at least one.
|
||||
if ( timeStepIndices.empty() )
|
||||
{
|
||||
timeStepIndices.push_back( 0 );
|
||||
}
|
||||
|
||||
RigEclipseCaseData* resultCase = eclipseCaseData();
|
||||
|
||||
QList<RimEclipseStatisticsCaseEvaluator::ResSpec> resultSpecification;
|
||||
|
||||
Reference in New Issue
Block a user