/[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.71 by jmc, Wed Aug 15 18:27:54 2012 UTC revision 1.77 by jmc, Fri Apr 5 21:15:06 2013 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[^=]*=\(.*\)'`
# Line 85  EOF Line 85  EOF
85  color="#bbffdd"  color="#bbffdd"
86  ncolor="#bbddff"  ncolor="#bbddff"
87    
88  MACHINES="faulks meander aces- acesgrid baudelaire dickens danton beagle harbor"  MACHINES="aces- acesgrid baudelaire dickens danton beagle"
89  MACHINES="$MACHINES pleiades iblade rays solasrv sx8"  MACHINES="$MACHINES pleiades iblade sx8 uv100 solasrv stomp weber"
 MACHINES="$MACHINES trane dodongo dokdo stomp bigred"  
90    
91  ( cd $INDIR ; ls -1 -t */summary.txt | sed 's/\/summary.txt//' ) > ./dir_all  ( cd $INDIR ; ls -1 -t */summary.txt | sed 's/\/summary.txt//' ) > ./dir_all
92    
# Line 107  done Line 106  done
106  for mname in $MACHINES ; do  for mname in $MACHINES ; do
107    
108      echo "  $mname"      echo "  $mname"
     sname=`echo $mname | sed 's/-$//'`  
109    
110      dir_list=`grep $mname ./dir_all`      dir_list=`grep $mname ./dir_all`
111      echo -n "" > ./mlist      echo -n "" > ./mlist
# Line 136  for mname in $MACHINES ; do Line 134  for mname in $MACHINES ; do
134              OPTFILE="not_explicitly_specified"              OPTFILE="not_explicitly_specified"
135          fi          fi
136    
137          ADJOINT=          # EXTRA = non-standard list of experiment
138          TANGLIN=          ADJOINT=0
139            TANGLIN=0
140            OPENAD=0
141          RESTART=0          RESTART=0
142            EXTRA=
143          FAST=0          FAST=0
144          DVLP=0          DVLP=0
145          MPI=0          MPI=0
146          MTH=0          MTH=0
147          UR4=0          UR4=0
148          if test -r $dir/summary.txt ; then          if test -r $dir/summary.txt ; then
149              comm=`grep 'ADJOINT=true' $dir/summary.txt 2>/dev/null`              ADJOINT=`grep -c -i '^ADJOINT' $dir/summary.txt`
150              eval $comm              if test "x$ADJOINT" = x1 ; then
151              comm=`grep 'TANGLIN=true' $dir/summary.txt 2>/dev/null`                OPENAD=`grep -c '^Adjoint .* OpenAD' $dir/summary.txt`
152              eval $comm              fi
153                TANGLIN=`grep -c -i '^TANGLIN' $dir/summary.txt`
154                if test "x$TANGLIN" = x1 ; then
155                  OPENAD=`grep -c '^TangLin .* OpenAD' $dir/summary.txt`
156                fi
157              RESTART=`grep -c 'test 2+2=4 summary' $dir/summary.txt`              RESTART=`grep -c 'test 2+2=4 summary' $dir/summary.txt`
158              FAST=`grep -c "^run: .*testreport.* '*-fast'*" $dir/summary.txt`              comm=`grep '^run: .*testreport.* ' $dir/summary.txt`
159                EXTRA=`echo "$comm" | grep " -*-tdir\>" | sed -e "s/^.* -*-tdir\>//" -e "s/ -.*$//"`
160                if test "x$EXTRA" = x ; then
161                    EXTRA=`echo "$comm" | grep " -*-t\>" | sed -e "s/^.*-*-t\>//" -e "s/ -.*$//"`
162                fi
163                if test "x$EXTRA" = x ; then EXTRA=0 ; else
164                    #echo -n "EXTRA=$EXTRA"
165                    nn0=`echo $EXTRA | sed "s/ *' *//g" | wc -w`
166                    nn1=`echo $EXTRA | sed "s/ *' *//g" | tr ' ' '\n' | grep -c "\<monod_"`
167                    nn2=`echo $EXTRA | sed "s/ *' *//g" | tr ' ' '\n' | grep -c "\<darwin_"`
168                    EXTRA=1
169                    if [ $nn1 -ge 2 ] ; then EXTRA=2 ; fi
170                    if [ $nn2 -ge 2 ] ; then EXTRA=3 ; fi
171                    #echo " : nn0=$nn0 ; nn1=$nn1 ; nn2=$nn2"
172                fi
173                FAST=`echo "$comm" | grep -c " -*-fast\>"`
174              if test "x$FAST" = x0 ; then              if test "x$FAST" = x0 ; then
175                FAST=`grep -c "^run: .*testreport.* '*-noieee'*" $dir/summary.txt`                  FAST=`echo "$comm" | grep -c " '*-noieee'*"`
176              fi              fi
177              DVLP=`grep -c "^run: .*testreport.* '*-devel'*" $dir/summary.txt`              DVLP=`echo "$comm" | grep -c " -*-devel\>"`
178              MPI=`grep -c "^run: .*testreport.* -mpi " $dir/summary.txt`              MPI=`echo "$comm" | grep -c " -*-mpi\>"`
179              if test "x$MPI" = x0 ; then              if test "x$MPI" = x0 ; then
180                 MPI=`grep -c "^run: .*testreport.* -MPI " $dir/summary.txt`                  MPI=`echo "$comm" | grep -c " -*-MPI\>"`
181              fi              fi
182              MTH=`grep -c "^run: .*testreport.* -mth " $dir/summary.txt`              MTH=`echo "$comm" | grep -c " -*-mth\>"`
183              UR4=`grep -c "^run: .*testreport.* -use_r4 " $dir/summary.txt`              UR4=`echo "$comm" | grep -c " -*-use_r4\>"`
184              if test "x$UR4" = x0 ; then              if test "x$UR4" = x0 ; then
185                 UR4=`grep -c "^run: .*testreport.* -ur4 " $dir/summary.txt`                  UR4=`echo "$comm" | grep -c " -*-ur4\>"`
186              fi              fi
187          fi          fi
188          if test "x$ADJOINT" = xtrue ; then          if test "x$ADJOINT" = x1 ; then
189              kind="adjoint" ; order='000'              kind="adjoint-taf" ; order=0
190          elif test "x$TANGLIN" = xtrue ; then            if test "x$OPENAD" = x1 ; then
191              kind="tang-lin" ; order='001'              kind="adjoint-oad" ; order=2
192              fi
193            elif test "x$TANGLIN" = x1 ; then
194                kind="tanglin-taf" ; order=1
195              if test "x$OPENAD" = x1 ; then
196                kind="tanglin-oad" ; order=3
197              fi
198          elif test "x$RESTART" = x0 ; then          elif test "x$RESTART" = x0 ; then
199              kind="forward" ; order='002'              kind="forward" ; order=4
200          else          else
201              kind="restart" ; order='003'              kind="restart" ; order=5
202          fi          fi
203            order=`expr $order + 10 \* $EXTRA`
204            order=`printf '%3.3i' $order`
205          if test "x$UR4" = x1 ; then          if test "x$UR4" = x1 ; then
206              OPTFILE="${OPTFILE}.use_r4"              OPTFILE="${OPTFILE}.use_r4"
207          fi          fi
# Line 236  for mname in $MACHINES ; do Line 264  for mname in $MACHINES ; do
264              optf=`echo $tline | cut -d " " -f 3`              optf=`echo $tline | cut -d " " -f 3`
265              DAY=`echo $tline | cut -d " " -f 2`              DAY=`echo $tline | cut -d " " -f 2`
266              URL="results/$PERIOD/$ldir"              URL="results/$PERIOD/$ldir"
267                #-- machine name to print:
268                sname=`echo $mname | sed 's/-$//'`
269                alt=`echo $key | sed "s/$optf//"`
270               #if   [ $alt -ge 30 ] ; then sname="${sname}.darwin"
271               #elif [ $alt -ge 20 ] ; then sname="${sname}.monod" ; fi
272              cat <<EOF >>$OUTFILE              cat <<EOF >>$OUTFILE
273  <tr bgcolor="$color">  <tr bgcolor="$color">
274    <td height="0"> $sname </td>    <td height="0"> $sname </td>

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

  ViewVC Help
Powered by ViewVC 1.1.22