Pass simulation time argument to applyAction

This commit is contained in:
Joakim Hove 2021-02-05 09:39:35 +01:00
parent 009feaa35d
commit 4f90eff8d5

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;