mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-23 15:03:27 -06:00
Summary : Guard invalid data
This commit is contained in:
parent
1654c3cc58
commit
86d801a138
@ -147,6 +147,8 @@ void RimEnsembleStatisticsCase::calculate(const std::vector<RimSummaryCase*> sum
|
||||
std::vector<double> values;
|
||||
reader->values(inputAddress, &values);
|
||||
|
||||
if (timeSteps.size() != values.size()) continue;
|
||||
|
||||
RiaTimeHistoryCurveResampler resampler;
|
||||
resampler.setCurveData(values, timeSteps);
|
||||
if (inputAddress.hasAccumulatedData()) resampler.resampleAndComputePeriodEndValues(DateTimePeriod::DAY);
|
||||
|
Loading…
Reference in New Issue
Block a user