Skip to content

Commit

Permalink
#11053 Limit number of time step to 1 for static result
Browse files Browse the repository at this point in the history
This will also improve performance, as less memory is consumed
  • Loading branch information
magnesj committed Jan 12, 2024
1 parent 3f3ced5 commit cfff6ac
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cfff6ac

Please sign in to comment.