1
Fork 0

Moved mpi argument before input

This commit is contained in:
Edgar P. Burkhart 2022-03-03 12:34:09 +01:00
parent 9cadbaccf8
commit 11b940d7d0
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

View file

@ -43,7 +43,7 @@ with tempfile.TemporaryDirectory(prefix="swash_", dir=".") as tmp_raw:
with open(tmpdir.joinpath("sws.log"), "w") as logfile:
log.info(f"Runing swash in '{tmpdir}'")
cmd = (config.get("swash", "swashrun"), "-input", inp.name, *mpi)
cmd = (config.get("swash", "swashrun"), *mpi, "-input", inp.name)
log.info(f"Running {cmd}")
swash_run = subprocess.Popen(