Commit 1573588e authored by Dion Haefner's avatar Dion Haefner

parallel calls without mpi_flags did not work

parent e8d0259e
......@@ -26,7 +26,7 @@ DORIE_EXECUTABLE = os.path.join(DORIEDIR, "dune/dorie/dorie")
PARAMETERDIR = os.path.join(DORIEDIR, "doc/default_files")
DORIE_PYTHON = os.path.join(DORIEDIR, "dune-env")
def MPIRUN(nproc,exe,*args,**kwargs):
mpi_flags = [] if not "mpi_flags" in kwargs else kwargs["mpi_flags"]
mpi_flags = kwargs.get("mpi_flags") or []
return [k for k in [MPIEXEC,MPIEXEC_NUMPROC_FLAG,str(nproc)] \
+ mpi_flags + [MPIEXEC_PREFLAG,str(exe),
MPIEXEC_POSTFLAGS] + list(args) if k]
......
......@@ -24,7 +24,7 @@ MPIEXEC_POSTFLAGS = "@MPIEXEC_POSTFLAGS@"
RFG_EXEC = os.path.join(DORIEDIR, "dune/dorie-rfg/dorie-rfg")
def MPIRUN(nproc,exe,*args,**kwargs):
mpi_flags = [] if not "mpi_flags" in kwargs else kwargs["mpi_flags"]
mpi_flags = kwargs.get("mpi_flags") or []
return [k for k in [MPIEXEC,MPIEXEC_NUMPROC_FLAG,str(nproc)] \
+ mpi_flags + [MPIEXEC_PREFLAG,str(exe),
MPIEXEC_POSTFLAGS] + list(args) if k]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment