mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-01 03:37:15 -06:00
#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:
parent
3f3ced5af0
commit
cfff6ac024
@ -63,6 +63,9 @@ void RimEclipseStatisticsCaseEvaluator::addNamedResult( RigCaseCellResultsData*
|
|||||||
|
|
||||||
size_t timeStepCount = std::max( size_t( 1 ), sourceTimeStepInfos.size() );
|
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 );
|
dataValues->resize( timeStepCount );
|
||||||
|
|
||||||
// Initializes the size of the destination dataset to active union cell count
|
// Initializes the size of the destination dataset to active union cell count
|
||||||
|
Loading…
Reference in New Issue
Block a user