mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-23 23:13:39 -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;
|
std::vector<double> values;
|
||||||
reader->values(inputAddress, &values);
|
reader->values(inputAddress, &values);
|
||||||
|
|
||||||
|
if (timeSteps.size() != values.size()) continue;
|
||||||
|
|
||||||
RiaTimeHistoryCurveResampler resampler;
|
RiaTimeHistoryCurveResampler resampler;
|
||||||
resampler.setCurveData(values, timeSteps);
|
resampler.setCurveData(values, timeSteps);
|
||||||
if (inputAddress.hasAccumulatedData()) resampler.resampleAndComputePeriodEndValues(DateTimePeriod::DAY);
|
if (inputAddress.hasAccumulatedData()) resampler.resampleAndComputePeriodEndValues(DateTimePeriod::DAY);
|
||||||
|
Loading…
Reference in New Issue
Block a user