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

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

  ViewVC Help
Powered by ViewVC 1.1.22