/[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.69 by jmc, Fri Aug 19 20:38:19 2011 UTC revision 1.74 by jmc, Tue Sep 4 20:29:22 2012 UTC
# Line 30  for ac_option ; do Line 30  for ac_option ; do
30    
31      # If the previous option needs an argument, assign it.      # If the previous option needs an argument, assign it.
32      if test -n "$ac_prev"; then      if test -n "$ac_prev"; then
33          eval "$ac_prev=\$ac_option"          eval "$ac_prev=\$ac_option"
34          ac_prev=          ac_prev=
35          continue          continue
36      fi      fi
37    
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
105  #MACHINES="faulks"  #MACHINES="baudelaire"
106    
107  for mname in $MACHINES ; do  for mname in $MACHINES ; do
108    
# Line 136  for mname in $MACHINES ; do Line 136  for mname in $MACHINES ; do
136              OPTFILE="not_explicitly_specified"              OPTFILE="not_explicitly_specified"
137          fi          fi
138    
139            # EXTRA = non-standard list of experiment
140          ADJOINT=          ADJOINT=
141            TANGLIN=
142          RESTART=0          RESTART=0
143            EXTRA=0
144          FAST=0          FAST=0
145          DVLP=0          DVLP=0
146          MPI=0          MPI=0
# Line 146  for mname in $MACHINES ; do Line 149  for mname in $MACHINES ; do
149          if test -r $dir/summary.txt ; then          if test -r $dir/summary.txt ; then
150              comm=`grep 'ADJOINT=true' $dir/summary.txt 2>/dev/null`              comm=`grep 'ADJOINT=true' $dir/summary.txt 2>/dev/null`
151              eval $comm              eval $comm
152                comm=`grep 'TANGLIN=true' $dir/summary.txt 2>/dev/null`
153                eval $comm
154              RESTART=`grep -c 'test 2+2=4 summary' $dir/summary.txt`              RESTART=`grep -c 'test 2+2=4 summary' $dir/summary.txt`
155              FAST=`grep -c "^run: .*testreport.* '*-fast'*" $dir/summary.txt`              comm=`grep '^run: .*testreport.* ' $dir/summary.txt`
156                EXTRA=`echo "$comm" | grep -c " -*-tdir\>"`
157                if test "x$EXTRA" = x0 ; then
158                   EXTRA=`echo "$comm" | grep -c " -*-t\>"`
159                fi
160                FAST=`echo "$comm" | grep -c " -*-fast\>"`
161              if test "x$FAST" = x0 ; then              if test "x$FAST" = x0 ; then
162                FAST=`grep -c "^run: .*testreport.* '*-noieee'*" $dir/summary.txt`                 FAST=`echo "$comm" | grep -c " '*-noieee'*"`
163              fi              fi
164              DVLP=`grep -c "^run: .*testreport.* '*-devel'*" $dir/summary.txt`              DVLP=`echo "$comm" | grep -c " -*-devel\>"`
165              MPI=`grep -c "^run: .*testreport.* -mpi " $dir/summary.txt`              MPI=`echo "$comm" | grep -c " -*-mpi\>"`
166              if test "x$MPI" = x0 ; then              if test "x$MPI" = x0 ; then
167                 MPI=`grep -c "^run: .*testreport.* -MPI " $dir/summary.txt`                 MPI=`echo "$comm" | grep -c " -*-MPI\>"`
168              fi              fi
169              MTH=`grep -c "^run: .*testreport.* -mth " $dir/summary.txt`              MTH=`echo "$comm" | grep -c " -*-mth\>"`
170              UR4=`grep -c "^run: .*testreport.* -use_r4 " $dir/summary.txt`              UR4=`echo "$comm" | grep -c " -*-use_r4\>"`
171              if test "x$UR4" = x0 ; then              if test "x$UR4" = x0 ; then
172                 UR4=`grep -c "^run: .*testreport.* -ur4 " $dir/summary.txt`                 UR4=`echo "$comm" | grep -c " -*-ur4\>"`
173              fi              fi
174          fi          fi
175          if test "x$RESTART" = x0 ; then          if test "x$ADJOINT" = xtrue ; then
176              kind="forward"              kind="adjoint" ; order=0
177              test "x$ADJOINT" = xtrue  &&  kind="adjoint"          elif test "x$TANGLIN" = xtrue ; then
178                kind="tanglin" ; order=1
179            elif test "x$RESTART" = x0 ; then
180                kind="forward" ; order=2
181          else          else
182              kind="restart"              kind="restart" ; order=3
183            fi
184            if test "x$EXTRA" != x0 ; then
185                order=`expr $order + 4`
186          fi          fi
187            order=`printf '%3.3i' $order`
188          if test "x$UR4" = x1 ; then          if test "x$UR4" = x1 ; then
189              OPTFILE="${OPTFILE}.use_r4"              OPTFILE="${OPTFILE}.use_r4"
190          fi          fi
# Line 204  for mname in $MACHINES ; do Line 221  for mname in $MACHINES ; do
221          DAY=`cat ./ms_tmp | awk '(length($1)==8 && substr($1,0,2)=="20")'`          DAY=`cat ./ms_tmp | awk '(length($1)==8 && substr($1,0,2)=="20")'`
222          rm -f ./ms_tmp          rm -f ./ms_tmp
223    
224          echo "$OPTFILE$kind $DAY $OPTFILE $kind $i $t_pass:$t_tot" >> ./mlist          echo "$OPTFILE$order $DAY $OPTFILE $kind $i $t_pass:$t_tot" >> ./mlist
225    
226      done      done
227    
# Line 216  for mname in $MACHINES ; do Line 233  for mname in $MACHINES ; do
233      if test $num -gt 0 ; then      if test $num -gt 0 ; then
234    
235          # swap colors          # swap colors
236          ctmp=$color          ctmp=$color
237          color=$ncolor          color=$ncolor
238          ncolor=$ctmp          ncolor=$ctmp
239    
240          keys=`cat ./mlist | cut -d " " -f 1 | sort | uniq`          keys=`cat ./mlist | cut -d " " -f 1 | sort | uniq`
241    

Legend:
Removed from v.1.69  
changed lines
  Added in v.1.74

  ViewVC Help
Powered by ViewVC 1.1.22