Fixed a bug when "+pemap" is specified as it was falsely parsed for number of PEs.
authorChao Mei <chaomei2@illinois.edu>
Wed, 10 Nov 2010 03:44:19 +0000 (21:44 -0600)
committerChao Mei <chaomei2@illinois.edu>
Wed, 10 Nov 2010 03:44:19 +0000 (21:44 -0600)
src/arch/mpi/charmrun

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