From 11b940d7d0ad3f528e1206d015fdd9e509f4c88b Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Thu, 3 Mar 2022 12:34:09 +0100 Subject: [PATCH] Moved mpi argument before input --- swash/processing/swash.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swash/processing/swash.py b/swash/processing/swash.py index 1fb78df..fa30723 100644 --- a/swash/processing/swash.py +++ b/swash/processing/swash.py @@ -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(