From 415fcc150c56dbb4e12e4cd379513ce1f44271e3 Mon Sep 17 00:00:00 2001 From: Jim Edwards Date: Mon, 17 Dec 2018 15:34:51 -0700 Subject: [PATCH] try fixing the right file --- cmake/mpiexec.nwsc | 16 ---------------- cmake/mpiexec.nwscla | 2 +- 2 files changed, 1 insertion(+), 17 deletions(-) delete mode 100755 cmake/mpiexec.nwsc diff --git a/cmake/mpiexec.nwsc b/cmake/mpiexec.nwsc deleted file mode 100755 index bf735175ed9..00000000000 --- a/cmake/mpiexec.nwsc +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash -# -# Arguments: -# -# $1 - Number of MPI Tasks -# $2+ - Executable and its arguments -# - -NP=$1 -shift -if [[ "$LMOD_FAMILY_MPI" == "openmpi" ]] -then - mpirun -np $NP $@ -else - mpiexec_mpt -n $NP $@ -fi diff --git a/cmake/mpiexec.nwscla b/cmake/mpiexec.nwscla index 1004e573333..bf735175ed9 100755 --- a/cmake/mpiexec.nwscla +++ b/cmake/mpiexec.nwscla @@ -8,7 +8,7 @@ NP=$1 shift -if [ $LMOD_FAMILY_MPI -eq "openmpi" ] +if [[ "$LMOD_FAMILY_MPI" == "openmpi" ]] then mpirun -np $NP $@ else