Run PYACTION with Schedule::runPyAction() and call simulatorUpdate

This commit is contained in:
Joakim Hove 2022-01-20 15:50:35 +01:00
parent ef534b2b58
commit fa0b3ef919

View File

@ -1318,11 +1318,12 @@ public:
ts = os.str();
}
bool commit_wellstate = false;
for (const auto& pyaction : actions.pending_python()) {
pyaction->run(ecl_state, schedule, reportStep, summaryState);
auto sim_update = schedule.runPyAction(reportStep, *pyaction, ecl_state, summaryState);
this->applySimulatorUpdate(reportStep, comm, sim_update, ecl_state, schedule, summaryState, commit_wellstate);
}
bool commit_wellstate = false;
auto simTime = asTimeT(now);
for (const auto& action : actions.pending(actionState, simTime)) {
auto actionResult = action->eval(context);