[Swift-commit] r3822 - trunk/libexec

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Thu Dec 23 11:37:14 CST 2010


Author: wozniak
Date: 2010-12-23 11:37:14 -0600 (Thu, 23 Dec 2010)
New Revision: 3822

Modified:
   trunk/libexec/_swiftwrap
Log:
DEBUG=0 by default, debug MPI_RANK


Modified: trunk/libexec/_swiftwrap
===================================================================
--- trunk/libexec/_swiftwrap	2010-12-23 17:35:52 UTC (rev 3821)
+++ trunk/libexec/_swiftwrap	2010-12-23 17:37:14 UTC (rev 3822)
@@ -3,7 +3,7 @@
 # note that this script modifies $IFS
 
 # Toggle debugging output from debug()
-DEBUG=1
+DEBUG=0
 
 infosection() {
         echo >& "$INFO"
@@ -52,7 +52,7 @@
 }
 
 debug() {
-	[ $DEBUG == 1 ] && echo "$@" >& "$INFO"
+	[[ $DEBUG == 1 ]] && echo "$@" >& "$INFO"
 }
 
 fail() {
@@ -352,9 +352,9 @@
 log "OUTF=$OUTF"
 log "KICKSTART=$KICKSTART"
 log "CDM_FILE=$CDM_FILE"
+[ -z $MPI_RANK ] && log "MPI_RANK=$MPI_RANK"
 log "ARGS=$@"
 log "ARGC=$#"
-
 IFS="|"
 
 logstate "CREATE_JOBDIR"
@@ -426,6 +426,8 @@
 fi
 logstate "EXECUTE"
 
+debug "Command line: $EXEC ${CMDARGS[@]}"
+
 if [ ! -f "$EXEC" ]; then
 	fail 254 "The executable $EXEC does not exist"
 fi




More information about the Swift-commit mailing list