Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
- corrected test on -map
authorgenaud <genaud@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 30 Jun 2009 09:32:32 +0000 (09:32 +0000)
committergenaud <genaud@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 30 Jun 2009 09:32:32 +0000 (09:32 +0000)
- removed -quiet and useless msg

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6393 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/smpi/smpirun.in

index 0fda9b4..c5a4b17 100755 (executable)
@@ -43,14 +43,9 @@ while true; do
       fi
        shift 2
     ;;
-
+   
    "-map")
-       MAPOPT="on"
-      shift 1
-   ;;
-
-   "-quiet")
-       QUIET="true"
+       MAPOPT="true"
       shift 1
    ;;
 
@@ -153,7 +148,7 @@ do
        j=$(( $i % ${NUMHOSTS} ))
   fi 
   ##---- optional display of ranks to process mapping
-  if [ -n ${MAPOPT} ]; then
+  if [ -n "${MAPOPT}" ]; then
        echo "[rank $i] -> ${hostnames[$j]}"  
   fi
 
@@ -175,17 +170,14 @@ cat >> ${APPLICATIONTMP} <<APPLICATIONFOOT
 APPLICATIONFOOT
 ##-------------------------------- end DEFAULT APPLICATION --------------------------------------
 
-if [ -z "${QUIET}" ] ; then
+if [ -n "${KEEP}" ] ; then
   echo ${EXEC} ${SIMOPTS} ${PLATFORMTMP} ${APPLICATIONTMP}
 fi
 ${EXEC} ${SIMOPTS} ${PLATFORMTMP} ${APPLICATIONTMP}
 
-if [ "x$?" == "x0" ] && [ -n ${KEEP} ] ; then
-  if [ -z "${QUIET}" ] ; then
-    echo "[$0] cleaning up temp files" 
-  fi
+if [ -z "${KEEP}" ] ; then
    if [ -z "${PLATFORM}" ]; then
        rm ${PLATFORMTMP} 
    fi
    rm ${APPLICATIONTMP}
-fi
\ No newline at end of file
+fi