mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Call endEpisode() for WellModel and Aquifer model
This commit is contained in:
parent
43f42ab7d7
commit
979279b31c
@ -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<int>(schedule.size() - 1)) {
|
||||
simulator.setFinished(true);
|
||||
|
Loading…
Reference in New Issue
Block a user