joergbuchwald / ogs6py

Python-API for the OpenGeoSys (http://www.opengeosys.org) software.
BSD 3-Clause "New" or "Revised" License
16 stars 23 forks source link

Feature request: Run ogs with some wrapper (e.g. mpirun) #25

Closed bilke closed 2 years ago

bilke commented 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:

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.

joergbuchwald commented 2 years ago

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?

bilke commented 2 years ago

Thanks a lot!