Implements a Python step_cleanup() method.

Continues the work in #2735 on implementing Python bindings for the flow
simulator.
This commit is contained in:
Håkon Hægland
2020-10-01 23:54:48 +02:00
parent 4f1bed2890
commit 0403d4e6e7
3 changed files with 33 additions and 7 deletions

View File

@@ -335,6 +335,15 @@ namespace Opm
return simulator_->runStep(*simtimer_);
}
// Called from Python to cleanup after having executed the last
// executeStep()
int executeStepsCleanup()
{
SimulatorReport report = simulator_->finalize();
runSimulatorAfterSim_(report);
return report.success.exit_status;
}
// Print an ASCII-art header to the PRT and DEBUG files.
// \return Whether unkown keywords were seen during parsing.
static void printPRTHeader(bool output_cout)