#5158 Grid Case Group: Allow statistics on static data only

Support grid cases with no dynamic data present.
This commit is contained in:
Magne Sjaastad
2019-12-03 12:58:04 +01:00
parent ce94b6ff9e
commit e0e984f703
3 changed files with 13 additions and 7 deletions

View File

@@ -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;