Use strict SimulatorUpdate as return type from Schedule::applyAction

This commit is contained in:
Joakim Hove 2021-11-10 15:35:02 +01:00
parent fcb6ee60fb
commit 86f7a2d332

View File

@ -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 {