Merge pull request #3482 from joakim-hove/store-action-result

Store the action result - when evaluated to true
This commit is contained in:
Bård Skaflestad 2021-08-19 20:59:35 +02:00 committed by GitHub
commit fdf3ae83ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1289,10 +1289,10 @@ 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);
actionState.add_run(*action, simTime);
this->wellModel_.updateEclWells(reportStep, affected_wells);
if (!affected_wells.empty())
commit_wellstate = true;
actionState.add_run(*action, simTime, std::move(actionResult));
} else {
std::string msg = "The action: " + action->name() + " evaluated to false at " + ts;
OpmLog::info(msg);