ebos: only update the hysteresis parameters at the end of episodes

updating them at the end of each time step may make more sense from a
physical POV, but flow updates it only after each report step, so
let's do the same...
This commit is contained in:
Andreas Lauser 2016-06-29 17:41:46 +02:00
parent c0b07f6083
commit 57372d5fab

View File

@ -401,6 +401,8 @@ public:
if (nextEpisodeIdx < numReportSteps) {
simulator.startNextEpisode(episodeLength);
simulator.setTimeStepSize(dt);
if (updateHysteresis_())
this->model().invalidateIntensiveQuantitiesCache(/*timeIdx=*/0);
}
if (!GET_PROP_VALUE(TypeTag, DisableWells))
@ -465,13 +467,6 @@ public:
// write the summary information after each time step
summaryWriter_.write(wellManager_);
}
bool cachesInvalid = false;
cachesInvalid = cachesInvalid || updateHysteresis_();
if (cachesInvalid)
this->model().invalidateIntensiveQuantitiesCache(/*timeIdx=*/0);
}
/*!