mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
TUT: use mpiexec instead of mpirun for msmpi in RunFunctions (#1238)
This commit is contained in:
committed by
Andrew Heather
parent
663b422587
commit
52df9a2fee
@ -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
|
||||
|
||||
Reference in New Issue
Block a user