Call SingleWellState::update_targets for ACTIONX affected wells

This commit is contained in:
Joakim Hove
2021-11-01 08:49:46 +01:00
parent 869de90b56
commit fd5640774b
5 changed files with 15 additions and 3 deletions

View File

@@ -1317,7 +1317,7 @@ 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);
this->wellModel_.updateEclWells(reportStep, affected_wells, summaryState);
if (!affected_wells.empty())
commit_wellstate = true;
actionState.add_run(*action, simTime, std::move(actionResult));