Merge pull request #6078 from akva2/fix_clear_events

fixed: clear out events before processing actions
This commit is contained in:
Bård Skaflestad authored and GitHub committed 2025-03-14 13:25:16 +01:00
commit c42c8bbc97
1 file changed
+4
@@ -465,6 +465,10 @@ public:
const int episodeIdx = this->episodeIndex();
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
this->actionHandler_
.applyActions(episodeIdx, simulator.time() + simulator.timeStepSize(),