mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Use strict SimulatorUpdate as return type from Schedule::applyAction
This commit is contained in:
parent
fcb6ee60fb
commit
86f7a2d332
@ -1319,9 +1319,9 @@ public:
|
|||||||
|
|
||||||
const auto& wellpi = this->fetchWellPI(reportStep, *action, schedule, matching_wells);
|
const auto& wellpi = this->fetchWellPI(reportStep, *action, schedule, matching_wells);
|
||||||
|
|
||||||
auto affected_wells = schedule.applyAction(reportStep, TimeService::from_time_t(simTime), *action, actionResult, wellpi);
|
auto sim_update = schedule.applyAction(reportStep, TimeService::from_time_t(simTime), *action, actionResult, wellpi);
|
||||||
this->wellModel_.updateEclWells(reportStep, affected_wells, summaryState);
|
this->wellModel_.updateEclWells(reportStep, sim_update.affected_wells, summaryState);
|
||||||
if (!affected_wells.empty())
|
if (!sim_update.affected_wells.empty())
|
||||||
commit_wellstate = true;
|
commit_wellstate = true;
|
||||||
actionState.add_run(*action, simTime, std::move(actionResult));
|
actionState.add_run(*action, simTime, std::move(actionResult));
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user