diff --git a/ebos/eclproblem.hh b/ebos/eclproblem.hh index d8bccd94a..72ef82397 100644 --- a/ebos/eclproblem.hh +++ b/ebos/eclproblem.hh @@ -1255,8 +1255,11 @@ public: auto& simulator = this->simulator(); auto& schedule = simulator.vanguard().schedule(); - int episodeIdx = simulator.episodeIndex(); + wellModel_.endEpisode(); + if (enableAquifers_) + aquiferModel_.endEpisode(); + int episodeIdx = simulator.episodeIndex(); // check if we're finished ... if (episodeIdx + 1 >= static_cast(schedule.size() - 1)) { simulator.setFinished(true);