mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Store the action result - when evaluated to true
This commit is contained in:
parent
bee8ee1c00
commit
0da38ee7d0
@ -1289,10 +1289,10 @@ 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 affected_wells = schedule.applyAction(reportStep, TimeService::from_time_t(simTime), *action, actionResult, wellpi);
|
||||||
actionState.add_run(*action, simTime);
|
|
||||||
this->wellModel_.updateEclWells(reportStep, affected_wells);
|
this->wellModel_.updateEclWells(reportStep, affected_wells);
|
||||||
if (!affected_wells.empty())
|
if (!affected_wells.empty())
|
||||||
commit_wellstate = true;
|
commit_wellstate = true;
|
||||||
|
actionState.add_run(*action, simTime, std::move(actionResult));
|
||||||
} else {
|
} else {
|
||||||
std::string msg = "The action: " + action->name() + " evaluated to false at " + ts;
|
std::string msg = "The action: " + action->name() + " evaluated to false at " + ts;
|
||||||
OpmLog::info(msg);
|
OpmLog::info(msg);
|
||||||
|
Loading…
Reference in New Issue
Block a user