#11053 Limit number of time step to 1 for static result

This will also improve performance, as less memory is consumed
This commit is contained in:
Magne Sjaastad 2024-01-12 15:11:38 +01:00
parent 3f3ced5af0
commit cfff6ac024

View File

@ -63,6 +63,9 @@ void RimEclipseStatisticsCaseEvaluator::addNamedResult( RigCaseCellResultsData*
size_t timeStepCount = std::max( size_t( 1 ), sourceTimeStepInfos.size() );
// Limit to one time step for static native results
if ( resultType == RiaDefines::ResultCatType::STATIC_NATIVE ) timeStepCount = 1;
dataValues->resize( timeStepCount );
// Initializes the size of the destination dataset to active union cell count