/[MITgcm]/mitgcm.org/front_content/make_summary
ViewVC logotype

Diff of /mitgcm.org/front_content/make_summary

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

revision 1.70 by jmc, Tue Aug 23 18:14:10 2011 UTC revision 1.71 by jmc, Wed Aug 15 18:27:54 2012 UTC
# Line 38  for ac_option ; do Line 38  for ac_option ; do
38      ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`      ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
39    
40      case $ac_option in      case $ac_option in
41            
42          -help | --help | -h | --h)          -help | --help | -h | --h)
43              usage ;;              usage ;;
           
         -date | --date | -d | --d)  
             ac_prev=PERIOD ;;  
         --date=* | -date=*)  
             PERIOD=$ac_optarg ;;  
44    
45          *)          -date | --date | -d | --d)
46                ac_prev=PERIOD ;;
47            --date=* | -date=*)
48                PERIOD=$ac_optarg ;;
49    
50            *)
51              echo "Error: don't understand argument \"$ac_option\""              echo "Error: don't understand argument \"$ac_option\""
52              usage              usage
53              ;;              ;;
54    
55       esac       esac
56    
# Line 95  MALL=`cat ./dir_all | sed -e 's|_| |g' | Line 95  MALL=`cat ./dir_all | sed -e 's|_| |g' |
95  for madd in $MALL ; do  for madd in $MALL ; do
96      present=0      present=0
97      for m in $MACHINES ; do      for m in $MACHINES ; do
98          echo $madd | grep $m > /dev/null 2>&1          echo $madd | grep $m > /dev/null 2>&1
99          RETVAL=$?          RETVAL=$?
100          test $RETVAL = 0  &&  present=1          test $RETVAL = 0  &&  present=1
101          continue          continue
102      done      done
103      test $present = 0  &&  MACHINES="$MACHINES $madd"      test $present = 0  &&  MACHINES="$MACHINES $madd"
104  done  done
# Line 137  for mname in $MACHINES ; do Line 137  for mname in $MACHINES ; do
137          fi          fi
138    
139          ADJOINT=          ADJOINT=
140            TANGLIN=
141          RESTART=0          RESTART=0
142          FAST=0          FAST=0
143          DVLP=0          DVLP=0
# Line 146  for mname in $MACHINES ; do Line 147  for mname in $MACHINES ; do
147          if test -r $dir/summary.txt ; then          if test -r $dir/summary.txt ; then
148              comm=`grep 'ADJOINT=true' $dir/summary.txt 2>/dev/null`              comm=`grep 'ADJOINT=true' $dir/summary.txt 2>/dev/null`
149              eval $comm              eval $comm
150                comm=`grep 'TANGLIN=true' $dir/summary.txt 2>/dev/null`
151                eval $comm
152              RESTART=`grep -c 'test 2+2=4 summary' $dir/summary.txt`              RESTART=`grep -c 'test 2+2=4 summary' $dir/summary.txt`
153              FAST=`grep -c "^run: .*testreport.* '*-fast'*" $dir/summary.txt`              FAST=`grep -c "^run: .*testreport.* '*-fast'*" $dir/summary.txt`
154              if test "x$FAST" = x0 ; then              if test "x$FAST" = x0 ; then
# Line 162  for mname in $MACHINES ; do Line 165  for mname in $MACHINES ; do
165                 UR4=`grep -c "^run: .*testreport.* -ur4 " $dir/summary.txt`                 UR4=`grep -c "^run: .*testreport.* -ur4 " $dir/summary.txt`
166              fi              fi
167          fi          fi
168          if test "x$ADJOINT" = xtrue ; then          if test "x$ADJOINT" = xtrue ; then
169              kind="adjoint" ; order='000'              kind="adjoint" ; order='000'
170            elif test "x$TANGLIN" = xtrue ; then
171                kind="tang-lin" ; order='001'
172          elif test "x$RESTART" = x0 ; then          elif test "x$RESTART" = x0 ; then
173              kind="forward" ; order='001'              kind="forward" ; order='002'
174          else          else
175              kind="restart" ; order='002'              kind="restart" ; order='003'
176          fi          fi
177          if test "x$UR4" = x1 ; then          if test "x$UR4" = x1 ; then
178              OPTFILE="${OPTFILE}.use_r4"              OPTFILE="${OPTFILE}.use_r4"
# Line 217  for mname in $MACHINES ; do Line 222  for mname in $MACHINES ; do
222      if test $num -gt 0 ; then      if test $num -gt 0 ; then
223    
224          # swap colors          # swap colors
225          ctmp=$color          ctmp=$color
226          color=$ncolor          color=$ncolor
227          ncolor=$ctmp          ncolor=$ctmp
228    
229          keys=`cat ./mlist | cut -d " " -f 1 | sort | uniq`          keys=`cat ./mlist | cut -d " " -f 1 | sort | uniq`
230    

Legend:
Removed from v.1.70  
changed lines
  Added in v.1.71

  ViewVC Help
Powered by ViewVC 1.1.22