From 0dacefc74e37f2e5975671edef1aa6c504bc8895 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Thu, 13 Mar 2025 13:12:00 +0100 Subject: [PATCH] fixed: clear out events before processing actions these have already been processed at start of report step and should not be executed again --- opm/simulators/flow/FlowProblemBlackoil.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/opm/simulators/flow/FlowProblemBlackoil.hpp b/opm/simulators/flow/FlowProblemBlackoil.hpp index bbbba6ff42..6d9570f80a 100644 --- a/opm/simulators/flow/FlowProblemBlackoil.hpp +++ b/opm/simulators/flow/FlowProblemBlackoil.hpp @@ -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(),