/[MITgcm]/mitgcm.org/scripts/check_outp
ViewVC logotype

Diff of /mitgcm.org/scripts/check_outp

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

revision 1.31 by jmc, Tue Aug 23 18:14:10 2011 UTC revision 1.32 by jmc, Thu Aug 16 02:48:24 2012 UTC
# Line 6  Line 6 
6  #  the latest output with the previous one (from the same platform with  #  the latest output with the previous one (from the same platform with
7  #    same optfile)  #    same optfile)
8    
   
9  usage()  usage()
10  {  {
11      echo      echo
# Line 101  make_resdir_list() Line 100  make_resdir_list()
100              fi              fi
101    
102              ADJOINT=              ADJOINT=
103                TANGLIN=
104              RESTART=0              RESTART=0
105              FAST=0              FAST=0
106              DVLP=0              DVLP=0
# Line 110  make_resdir_list() Line 110  make_resdir_list()
110              if test -r $dir/summary.txt ; then              if test -r $dir/summary.txt ; then
111                  comm=`grep 'ADJOINT=true' $dir/summary.txt 2>/dev/null`                  comm=`grep 'ADJOINT=true' $dir/summary.txt 2>/dev/null`
112                  eval $comm                  eval $comm
113                    comm=`grep 'TANGLIN=true' $dir/summary.txt 2>/dev/null`
114                    eval $comm
115                  RESTART=`grep -c 'test 2+2=4 summary' $dir/summary.txt`                  RESTART=`grep -c 'test 2+2=4 summary' $dir/summary.txt`
116                  FAST=`grep -c "^run: .*testreport.* '*-fast'*" $dir/summary.txt`                  FAST=`grep -c "^run: .*testreport.* '*-fast'*" $dir/summary.txt`
117                  if test "x$FAST" = x0 ; then                  if test "x$FAST" = x0 ; then
# Line 128  make_resdir_list() Line 130  make_resdir_list()
130              fi              fi
131              if test "x$ADJOINT" = xtrue ; then              if test "x$ADJOINT" = xtrue ; then
132                  kind="adjoint" ; order='000'                  kind="adjoint" ; order='000'
133                elif test "x$TANGLIN" = xtrue ; then
134                    kind="tanglin" ; order='001'
135              elif test "x$RESTART" = x0 ; then              elif test "x$RESTART" = x0 ; then
136                  kind="forward" ; order='001'                  kind="forward" ; order='002'
137              else              else
138                  kind="restart" ; order='002'                  kind="restart" ; order='003'
139              fi              fi
140              if test "x$UR4" = x1 ; then              if test "x$UR4" = x1 ; then
141                  OPTFILE="${OPTFILE}.use_r4"                  OPTFILE="${OPTFILE}.use_r4"
# Line 154  make_resdir_list() Line 158  make_resdir_list()
158              ttt=`echo $day | sed -e 's/_[0-9]$//' | sed -e 's/_[0-9][0-9]$//'`              ttt=`echo $day | sed -e 's/_[0-9]$//' | sed -e 's/_[0-9][0-9]$//'`
159              day=`echo $ttt | sed -e 's|_| |g' |awk '{print $NF}'`              day=`echo $ttt | sed -e 's|_| |g' |awk '{print $NF}'`
160    
161              if [ $day -lt $BEFORE ] ; then              if [ $day -lt $BEFORE ] ; then
162                  echo "$OPTFILE$order $day $OPTFILE $kind $i" >> ./plist                  echo "$OPTFILE$order $day $OPTFILE $kind $i" >> ./plist
163              elif [ $day -ge $FIRSTDAY -a $day -le $LASTDAY ] ; then              elif [ $day -ge $FIRSTDAY -a $day -le $LASTDAY ] ; then
164                  echo "$OPTFILE$order $day $OPTFILE $kind $i" >> ./slist                  echo "$OPTFILE$order $day $OPTFILE $kind $i" >> ./slist
# Line 203  for ac_option ; do Line 207  for ac_option ; do
207    
208      # If the previous option needs an argument, assign it.      # If the previous option needs an argument, assign it.
209      if test -n "$ac_prev"; then      if test -n "$ac_prev"; then
210          eval "$ac_prev=\$ac_option"          eval "$ac_prev=\$ac_option"
211          ac_prev=          ac_prev=
212          continue          continue
213      fi      fi
214    
215      ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`      ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.32

  ViewVC Help
Powered by ViewVC 1.1.22