mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Run PYACTION with Schedule::runPyAction() and call simulatorUpdate
This commit is contained in:
parent
ef534b2b58
commit
fa0b3ef919
@ -1318,11 +1318,12 @@ public:
|
|||||||
ts = os.str();
|
ts = os.str();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool commit_wellstate = false;
|
||||||
for (const auto& pyaction : actions.pending_python()) {
|
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);
|
auto simTime = asTimeT(now);
|
||||||
for (const auto& action : actions.pending(actionState, simTime)) {
|
for (const auto& action : actions.pending(actionState, simTime)) {
|
||||||
auto actionResult = action->eval(context);
|
auto actionResult = action->eval(context);
|
||||||
|
Loading…
Reference in New Issue
Block a user