mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
c0b07f6083
commit
57372d5fab
@ -401,6 +401,8 @@ public:
|
|||||||
if (nextEpisodeIdx < numReportSteps) {
|
if (nextEpisodeIdx < numReportSteps) {
|
||||||
simulator.startNextEpisode(episodeLength);
|
simulator.startNextEpisode(episodeLength);
|
||||||
simulator.setTimeStepSize(dt);
|
simulator.setTimeStepSize(dt);
|
||||||
|
if (updateHysteresis_())
|
||||||
|
this->model().invalidateIntensiveQuantitiesCache(/*timeIdx=*/0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!GET_PROP_VALUE(TypeTag, DisableWells))
|
if (!GET_PROP_VALUE(TypeTag, DisableWells))
|
||||||
@ -465,13 +467,6 @@ public:
|
|||||||
// write the summary information after each time step
|
// write the summary information after each time step
|
||||||
summaryWriter_.write(wellManager_);
|
summaryWriter_.write(wellManager_);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool cachesInvalid = false;
|
|
||||||
|
|
||||||
cachesInvalid = cachesInvalid || updateHysteresis_();
|
|
||||||
|
|
||||||
if (cachesInvalid)
|
|
||||||
this->model().invalidateIntensiveQuantitiesCache(/*timeIdx=*/0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
Loading…
Reference in New Issue
Block a user