Enable running normal ACTIONX keywords from PYACTION

The run() function invoked by PYACTION has got a new fifth argument which is a
callable the script should utilize to apply the keywords from an ACTIONX
keyword. The callable is implemented as C++ lambda which will run the
Schedule::iterateScheduleSection() method and make sure an updated
SimulatorUpdate variable can be passed back to the simulator.
This commit is contained in:
Joakim Hove
2022-01-24 13:47:05 +01:00
parent 4224e26321
commit 46b663218a
15 changed files with 693 additions and 17 deletions

View File

@@ -90,7 +90,7 @@ void msim::post_step(Schedule& schedule, SummaryState& st, data::Solution& /* so
}
for (const auto& pyaction : actions.pending_python())
pyaction->run(this->state, schedule, report_step, st);
schedule.runPyAction(report_step, *pyaction, this->state, st);
}