/[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.75 by jmc, Sat Sep 8 14:22:08 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[^=]*=\(.*\)'`
# Line 107  done Line 107  done
107  for mname in $MACHINES ; do  for mname in $MACHINES ; do
108    
109      echo "  $mname"      echo "  $mname"
     sname=`echo $mname | sed 's/-$//'`  
110    
111      dir_list=`grep $mname ./dir_all`      dir_list=`grep $mname ./dir_all`
112      echo -n "" > ./mlist      echo -n "" > ./mlist
# Line 136  for mname in $MACHINES ; do Line 135  for mname in $MACHINES ; do
135              OPTFILE="not_explicitly_specified"              OPTFILE="not_explicitly_specified"
136          fi          fi
137    
138            # EXTRA = non-standard list of experiment
139          ADJOINT=          ADJOINT=
140          TANGLIN=          TANGLIN=
141          RESTART=0          RESTART=0
142            EXTRA=
143          FAST=0          FAST=0
144          DVLP=0          DVLP=0
145          MPI=0          MPI=0
# Line 150  for mname in $MACHINES ; do Line 151  for mname in $MACHINES ; do
151              comm=`grep 'TANGLIN=true' $dir/summary.txt 2>/dev/null`              comm=`grep 'TANGLIN=true' $dir/summary.txt 2>/dev/null`
152              eval $comm              eval $comm
153              RESTART=`grep -c 'test 2+2=4 summary' $dir/summary.txt`              RESTART=`grep -c 'test 2+2=4 summary' $dir/summary.txt`
154              FAST=`grep -c "^run: .*testreport.* '*-fast'*" $dir/summary.txt`              comm=`grep '^run: .*testreport.* ' $dir/summary.txt`
155                EXTRA=`echo "$comm" | grep " -*-tdir\>" | sed -e "s/^.* -*-tdir\>//" -e "s/ -.*$//"`
156                if test "x$EXTRA" = x ; then
157                    EXTRA=`echo "$comm" | grep " -*-t\>" | sed -e "s/^.*-*-t\>//" -e "s/ -.*$//"`
158                fi
159                if test "x$EXTRA" = x ; then EXTRA=0 ; else
160                    #echo -n "EXTRA=$EXTRA"
161                    nn0=`echo $EXTRA | sed "s/ *' *//g" | wc -w`
162                    nn1=`echo $EXTRA | sed "s/ *' *//g" | tr ' ' '\n' | grep -c "\<monod_"`
163                    nn2=`echo $EXTRA | sed "s/ *' *//g" | tr ' ' '\n' | grep -c "\<darwin_"`
164                    EXTRA=1
165                    if [ $nn1 -ge 2 ] ; then EXTRA=2 ; fi
166                    if [ $nn2 -ge 2 ] ; then EXTRA=3 ; fi
167                    #echo " : nn0=$nn0 ; nn1=$nn1 ; nn2=$nn2"
168                fi
169                FAST=`echo "$comm" | grep -c " -*-fast\>"`
170              if test "x$FAST" = x0 ; then              if test "x$FAST" = x0 ; then
171                FAST=`grep -c "^run: .*testreport.* '*-noieee'*" $dir/summary.txt`                  FAST=`echo "$comm" | grep -c " '*-noieee'*"`
172              fi              fi
173              DVLP=`grep -c "^run: .*testreport.* '*-devel'*" $dir/summary.txt`              DVLP=`echo "$comm" | grep -c " -*-devel\>"`
174              MPI=`grep -c "^run: .*testreport.* -mpi " $dir/summary.txt`              MPI=`echo "$comm" | grep -c " -*-mpi\>"`
175              if test "x$MPI" = x0 ; then              if test "x$MPI" = x0 ; then
176                 MPI=`grep -c "^run: .*testreport.* -MPI " $dir/summary.txt`                  MPI=`echo "$comm" | grep -c " -*-MPI\>"`
177              fi              fi
178              MTH=`grep -c "^run: .*testreport.* -mth " $dir/summary.txt`              MTH=`echo "$comm" | grep -c " -*-mth\>"`
179              UR4=`grep -c "^run: .*testreport.* -use_r4 " $dir/summary.txt`              UR4=`echo "$comm" | grep -c " -*-use_r4\>"`
180              if test "x$UR4" = x0 ; then              if test "x$UR4" = x0 ; then
181                 UR4=`grep -c "^run: .*testreport.* -ur4 " $dir/summary.txt`                  UR4=`echo "$comm" | grep -c " -*-ur4\>"`
182              fi              fi
183          fi          fi
184          if test "x$ADJOINT" = xtrue ; then          if test "x$ADJOINT" = xtrue ; then
185              kind="adjoint" ; order='000'              kind="adjoint" ; order=0
186          elif test "x$TANGLIN" = xtrue ; then          elif test "x$TANGLIN" = xtrue ; then
187              kind="tang-lin" ; order='001'              kind="tanglin" ; order=1
188          elif test "x$RESTART" = x0 ; then          elif test "x$RESTART" = x0 ; then
189              kind="forward" ; order='002'              kind="forward" ; order=2
190          else          else
191              kind="restart" ; order='003'              kind="restart" ; order=3
192          fi          fi
193            order=`expr $order + 10 \* $EXTRA`
194            order=`printf '%3.3i' $order`
195          if test "x$UR4" = x1 ; then          if test "x$UR4" = x1 ; then
196              OPTFILE="${OPTFILE}.use_r4"              OPTFILE="${OPTFILE}.use_r4"
197          fi          fi
# Line 236  for mname in $MACHINES ; do Line 254  for mname in $MACHINES ; do
254              optf=`echo $tline | cut -d " " -f 3`              optf=`echo $tline | cut -d " " -f 3`
255              DAY=`echo $tline | cut -d " " -f 2`              DAY=`echo $tline | cut -d " " -f 2`
256              URL="results/$PERIOD/$ldir"              URL="results/$PERIOD/$ldir"
257                #-- machine name to print:
258                sname=`echo $mname | sed 's/-$//'`
259                alt=`echo $key | sed "s/$optf//"`
260               #if   [ $alt -ge 30 ] ; then sname="${sname}.darwin"
261               #elif [ $alt -ge 20 ] ; then sname="${sname}.monod" ; fi
262              cat <<EOF >>$OUTFILE              cat <<EOF >>$OUTFILE
263  <tr bgcolor="$color">  <tr bgcolor="$color">
264    <td height="0"> $sname </td>    <td height="0"> $sname </td>

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

  ViewVC Help
Powered by ViewVC 1.1.22