From 86f7a2d33228b35bb7e4d4244d4914c365acd6e7 Mon Sep 17 00:00:00 2001 From: Joakim Hove Date: Wed, 10 Nov 2021 15:35:02 +0100 Subject: [PATCH] Use strict SimulatorUpdate as return type from Schedule::applyAction --- ebos/eclproblem.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ebos/eclproblem.hh b/ebos/eclproblem.hh index 3c343c7d1..805a112cb 100644 --- a/ebos/eclproblem.hh +++ b/ebos/eclproblem.hh @@ -1319,9 +1319,9 @@ 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); - this->wellModel_.updateEclWells(reportStep, affected_wells, summaryState); - if (!affected_wells.empty()) + auto sim_update = schedule.applyAction(reportStep, TimeService::from_time_t(simTime), *action, actionResult, wellpi); + this->wellModel_.updateEclWells(reportStep, sim_update.affected_wells, summaryState); + if (!sim_update.affected_wells.empty()) commit_wellstate = true; actionState.add_run(*action, simTime, std::move(actionResult)); } else {