diff --git a/platform/exec/exec.OSX_SONOMA b/platform/exec/exec.OSX_SONOMA index 66e86c973..07e302a2c 100755 --- a/platform/exec/exec.OSX_SONOMA +++ b/platform/exec/exec.OSX_SONOMA @@ -1,8 +1,5 @@ #!/bin/sh -# GACODE Parallel execution script (OSX_MONTEREY) -# -# NOTES: -# Used openmpi, so use mpirun rather than mpiexec +# GACODE Parallel execution script (OSX_MOUNTAINLION) simdir=${1} nmpi=${2} @@ -11,8 +8,6 @@ nomp=${4} numa=${5} mpinuma=${6} -echo $simdir - cd $simdir -export OMP_NUM_THREADS=$nomp -mpirun -np $nmpi $exec +mpirun -env OMP_NUM_THREADS $nomp -np $nmpi $exec + diff --git a/platform/exec/exec.OSX_SONOMA_M3 b/platform/exec/exec.OSX_SONOMA_M3 index 66e86c973..27e45f6f0 100755 --- a/platform/exec/exec.OSX_SONOMA_M3 +++ b/platform/exec/exec.OSX_SONOMA_M3 @@ -1,8 +1,5 @@ #!/bin/sh -# GACODE Parallel execution script (OSX_MONTEREY) -# -# NOTES: -# Used openmpi, so use mpirun rather than mpiexec +# GACODE Parallel execution script (OSX_MOUNTAINLION) simdir=${1} nmpi=${2} @@ -11,8 +8,7 @@ nomp=${4} numa=${5} mpinuma=${6} -echo $simdir +export OMP_NUM_THREADS=$nomp cd $simdir -export OMP_NUM_THREADS=$nomp mpirun -np $nmpi $exec