Closed bilke closed 2 years ago
It would be nice if there were arguments to run_model() which specify a wrapper and its arguments, e.g. for running with MPI. Example API:
run_model()
model.run_model(logfile="out.log", wrapper="mpirun", wrapper_args="-np 3")
This would call mpirun -np 3 ogs path/to/project.prj > out.log behind the scenes.
mpirun -np 3 ogs path/to/project.prj > out.log
I think it simplifies things to have only wrapper as a function argument or is there a good reason you would distinguish between the wrapper and its arguments?
Thanks a lot!
It would be nice if there were arguments to
run_model()
which specify a wrapper and its arguments, e.g. for running with MPI. Example API:This would call
mpirun -np 3 ogs path/to/project.prj > out.log
behind the scenes.