Commit 52df9a2f authored by Mark OLESEN's avatar Mark OLESEN Committed by Andrew Heather
Browse files

TUT: use mpiexec instead of mpirun for msmpi in RunFunctions (#1238)

parent 663b4225
......@@ -241,6 +241,12 @@ runParallel()
# Any additional parsed arguments (eg, decomposeParDict)
local appArgs="-parallel"
local mpirun="mpirun"
if [ "$FOAM_MPI" = msmpi ]
then
mpirun="mpiexec"
fi
# Parse options until executable is encountered
while [ $# -gt 0 -a -z "$appRun" ]
do
......@@ -287,11 +293,11 @@ runParallel()
if [ "$logMode" = append ]
then
(
mpirun -np $nProcs $appRun $appArgs "$@" </dev/null >> $logFile 2>&1
$mpirun -np $nProcs $appRun $appArgs "$@" </dev/null >> $logFile 2>&1
)
else
(
mpirun -np $nProcs $appRun $appArgs "$@" </dev/null > $logFile 2>&1
$mpirun -np $nProcs $appRun $appArgs "$@" </dev/null > $logFile 2>&1
)
fi
fi
......
Supports Markdown
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