/[MITgcm]/MITgcm/tools/do_tst_2+2
ViewVC logotype

Diff of /MITgcm/tools/do_tst_2+2

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.15 by jmc, Sat Aug 18 18:59:14 2012 UTC revision 1.16 by jmc, Thu Oct 11 16:30:56 2012 UTC
# Line 78  do Line 78  do
78    fi    fi
79  done  done
80    
81  #------------------------  if test -x $SCRIPT ; then
82  if test $CLEAN = 1 ; then   if test $CLEAN = 1 ; then
83   echo "clean output from script '$SCRIPT' for experiment in:"     echo "clean output from script '$SCRIPT' for experiment in:"
84     else
85       echo "run script '$SCRIPT' for experiment in:"
86     fi
87   echo " $LIST"   echo " $LIST"
88   echo ""   echo ""
89     yy=`echo $SCRIPT | grep -c '^\/'`
90     if test $yy = 0 ; then SCRIPT="../../$SCRIPT" ; fi
91    else
92     echo "ERROR: script '$SCRIPT' not found or not executable"
93     exit
94    fi
95    #------------------------
96    
97    if test $CLEAN = 1 ; then
98   for xx in $LIST   for xx in $LIST
99   do   do
100    listD='run '`(cd $xx/results ; ls output.*.txt 2> /dev/null | sed 's/^output\./tr_run./g' | sed 's/\.txt$//g' )`    listD='run '`(cd $xx/results ; ls output.*.txt 2> /dev/null | sed 's/^output\./tr_run./g' | sed 's/\.txt$//g' )`
# Line 100  if test $CLEAN = 1 ; then Line 112  if test $CLEAN = 1 ; then
112   done   done
113   exit   exit
114  fi  fi
 if test -x $SCRIPT ; then  
  echo "run script '$SCRIPT' for experiment in:"  
  echo " $LIST"  
  echo ""  
  yy=`echo $SCRIPT | grep -c '^\/'`  
  if test $yy = 0 ; then SCRIPT="../../$SCRIPT" ; fi  
 else  
  echo "ERROR: script '$SCRIPT' not found or not executable"  
  exit  
 fi  
   
115  #------------------------  #------------------------
116  #  Create a uniquely named directory to store results  #  Create a uniquely named directory to store results
117  CMDLINE=$0  CMDLINE=$0

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

  ViewVC Help
Powered by ViewVC 1.1.22