From 0da38ee7d08b61727ae750ab05abb09d75b57750 Mon Sep 17 00:00:00 2001 From: Joakim Hove Date: Thu, 19 Aug 2021 15:32:47 +0200 Subject: [PATCH] Store the action result - when evaluated to true --- ebos/eclproblem.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ebos/eclproblem.hh b/ebos/eclproblem.hh index 5679b572b..a91cea4ea 100644 --- a/ebos/eclproblem.hh +++ b/ebos/eclproblem.hh @@ -1289,10 +1289,10 @@ public: const auto& wellpi = this->fetchWellPI(reportStep, *action, schedule, matching_wells); auto affected_wells = schedule.applyAction(reportStep, TimeService::from_time_t(simTime), *action, actionResult, wellpi); - actionState.add_run(*action, simTime); this->wellModel_.updateEclWells(reportStep, affected_wells); if (!affected_wells.empty()) commit_wellstate = true; + actionState.add_run(*action, simTime, std::move(actionResult)); } else { std::string msg = "The action: " + action->name() + " evaluated to false at " + ts; OpmLog::info(msg);