mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-02 20:30:46 -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:
1 parent
3f3ced5af0
commit
cfff6ac024
1 file changed
+3
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user