treat +pemap separately with it argument.
authorGengbin Zheng <gzheng@illinois.edu>
Wed, 10 Nov 2010 05:10:24 +0000 (23:10 -0600)
committerGengbin Zheng <gzheng@illinois.edu>
Wed, 10 Nov 2010 05:10:24 +0000 (23:10 -0600)
src/arch/mpi/charmrun

index edaf2161e7f0d8867e257bef9e7c3fea9f76311c..60b3761c20a9787afbd907bbe11f84b8f7338f18 100755 (executable)
@@ -25,13 +25,12 @@ do
                pes=$2
                shift
                ;;
+       +pemap)
+               args=$args" "$1" "$2
+               shift
+               ;;
        +p*)
-               if [ $1 = "+pemap" ];
-               then
-                       args=$args" "$1
-               else
-                       pes=`echo $1 | awk '{print substr($1,3)}'`
-               fi
+               pes=`echo $1 | awk '{print substr($1,3)}'`
                ;;
         -machinefile)
                machinefile=$2