Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Cosmetics: hostfile and machinefile are synonyms.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 15 Nov 2017 20:44:14 +0000 (21:44 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 15 Nov 2017 23:14:39 +0000 (00:14 +0100)
src/smpi/smpirun.in

index 7a33dc2..5f6c9d3 100755 (executable)
@@ -147,14 +147,7 @@ while true; do
             fi
            shift 2
             ;;
-        "-hostfile")
-           HOSTFILE="$2"
-            if [ ! -f "${HOSTFILE}" ]; then
-                die "the file '${HOSTFILE}' does not exist"
-            fi
-           shift 2
-            ;;
-        "-machinefile")
+        "-hostfile" | "-machinefile")
            HOSTFILE="$2"
             if [ ! -f "${HOSTFILE}" ]; then
                 die "the file '${HOSTFILE}' does not exist"