Merge pull request #3047 from joakim-hove/action-simtime

Pass simulation time argument to applyAction
This commit is contained in:
Joakim Hove 2021-02-05 12:06:35 +01:00 committed by GitHub
commit ee86c9d991
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1329,7 +1329,7 @@ public:
}
std::string msg = "The action: " + action->name() + " evaluated to true at " + ts + " wells: " + wells_string;
Opm::OpmLog::info(msg);
schedule.applyAction(reportStep, *action, actionResult);
schedule.applyAction(reportStep, std::chrono::system_clock::from_time_t(simTime), *action, actionResult);
actionState.add_run(*action, simTime);
} else {
std::string msg = "The action: " + action->name() + " evaluated to false at " + ts;