/[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.13 by jmc, Thu May 19 13:18:43 2011 UTC revision 1.14 by jmc, Sun Apr 29 22:11:17 2012 UTC
# Line 116  for xx in "$@" ; do nw=`echo $xx | wc -w Line 116  for xx in "$@" ; do nw=`echo $xx | wc -w
116                          else CMDLINE="$CMDLINE '$xx'" ; fi                          else CMDLINE="$CMDLINE '$xx'" ; fi
117  done  done
118  #for xx in "$@" ; do CMDLINE="$CMDLINE '$xx'" ; done  #for xx in "$@" ; do CMDLINE="$CMDLINE '$xx'" ; done
119  DATE=`date +%Y%m%d`  DATE=''
120    if test -f tr_out.txt ; then
121    #  try to use the date corresponding to 'Start time:' in file "tr_out.txt" :
122      sTime=`grep '^Start time:  ' tr_out.txt 2>/dev/null | sed 's/Start time:  //'`
123      if test "x$sTime" != x ; then DATE=`date -d "$sTime" "+%Y%m%d" 2>/dev/null` ; fi
124    fi
125    #  otherwise, use current date:
126    if test "x$DATE" = x ; then DATE=`date +%Y%m%d`; fi
127  BASE="rs_"$OUTDIR"_"$DATE"_"  BASE="rs_"$OUTDIR"_"$DATE"_"
128  xx=0  xx=0
129  DRESULTS="$BASE$xx"  DRESULTS="$BASE$xx"

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.22