mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-11-02 09:16:07 -06:00
Merge pull request #6078 from akva2/fix_clear_events
fixed: clear out events before processing actions
This commit is contained in:
1 file changed
+4
@@ -465,6 +465,10 @@ public:
|
|||||||
const int episodeIdx = this->episodeIndex();
|
const int episodeIdx = this->episodeIndex();
|
||||||
auto& simulator = this->simulator();
|
auto& simulator = this->simulator();
|
||||||
|
|
||||||
|
// Clear out any existing events as these have already been
|
||||||
|
// processed when we're running an action block
|
||||||
|
this->simulator().vanguard().schedule().clearEvents(episodeIdx);
|
||||||
|
|
||||||
// Re-ordering in case of Alugrid
|
// Re-ordering in case of Alugrid
|
||||||
this->actionHandler_
|
this->actionHandler_
|
||||||
.applyActions(episodeIdx, simulator.time() + simulator.timeStepSize(),
|
.applyActions(episodeIdx, simulator.time() + simulator.timeStepSize(),
|
||||||
|
|||||||
Reference in new issue
Block a user