mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Make it possible to exclude partial delta curves
Make sure statistics curves are recomputed on flag change When toggling "Discard Missing or Incomplete Realizations", make sure the statistics is recomputed and the ensemble plots updated.
This commit is contained in:
@@ -143,14 +143,14 @@ void RimEnsembleStatisticsCase::calculate( const std::vector<RimSummaryCase*>& s
|
||||
// Use first summary case to get unit system and other meta data
|
||||
m_firstSummaryCase = summaryCases.front();
|
||||
|
||||
const auto [minTime, maxTime] = findMinMaxTime( summaryCases, inputAddress );
|
||||
RiaDefines::DateTimePeriod period = findBestResamplingPeriod( minTime, maxTime );
|
||||
const auto [minTime, maxTime] = findMinMaxTime( summaryCases, inputAddress );
|
||||
|
||||
// The last time step for the individual realizations in an ensemble is usually identical. Add a small threshold to improve robustness.
|
||||
const auto timeThreshold = maxTime - ( maxTime - minTime ) * 0.01;
|
||||
const auto timeThreshold = RiaSummaryTools::calculateTimeThreshold( minTime, maxTime );
|
||||
|
||||
RiaDefines::DateTimePeriod period = findBestResamplingPeriod( minTime, maxTime );
|
||||
|
||||
RiaTimeHistoryCurveMerger curveMerger;
|
||||
|
||||
for ( const auto& sumCase : summaryCases )
|
||||
{
|
||||
const auto& reader = sumCase->summaryReader();
|
||||
@@ -169,7 +169,7 @@ void RimEnsembleStatisticsCase::calculate( const std::vector<RimSummaryCase*>& s
|
||||
}
|
||||
}
|
||||
|
||||
curveMerger.computeInterpolatedValues();
|
||||
curveMerger.computeInterpolatedValues( includeIncompleteCurves );
|
||||
|
||||
std::vector<std::vector<double>> curveValues;
|
||||
for ( size_t i = 0; i < curveMerger.curveCount(); i++ )
|
||||
|
||||
Reference in New Issue
Block a user