/[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.61 by jmc, Tue Mar 2 19:26:10 2010 UTC revision 1.68 by jmc, Tue Aug 9 16:35:32 2011 UTC
# Line 10  usage() Line 10  usage()
10  {  {
11      echo      echo
12      echo "Usage:  $0 [OPTIONS]"      echo "Usage:  $0 [OPTIONS]"
13      echo      echo
14      echo "where possible OPTIONS are:"      echo "where possible OPTIONS are:"
15      echo "  (-help|-h)           print usage"      echo "  (-help|-h)           print usage"
16      echo "  (-date |-d )PERIOD   run for PERIOD=\"YYYY_MM\""      echo "  (-date |-d )PERIOD   run for PERIOD=\"YYYY_MM\""
17      echo "                         [def=\"$PERIOD\"]"      echo "                         [def=\"$PERIOD\"]"
18      echo      echo
19      exit 1      exit 1
20  }  }
21    
# Line 85  EOF Line 85  EOF
85  color="#bbffdd"  color="#bbffdd"
86  ncolor="#bbddff"  ncolor="#bbddff"
87    
88  MACHINES="faulks meander lagoon harbor dickens danton aces"  MACHINES="faulks meander aces- acesgrid baudelaire dickens danton beagle harbor"
89  MACHINES="$MACHINES beagle columbia pleiades iblade rays solssrv solasrv sx8"  MACHINES="$MACHINES pleiades iblade rays solasrv sx8"
90  MACHINES="$MACHINES bigred starp"  MACHINES="$MACHINES trane dodongo dokdo stomp bigred"
91    
92  ( 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
93    
# Line 107  done Line 107  done
107  for mname in $MACHINES ; do  for mname in $MACHINES ; do
108    
109      echo "  $mname"      echo "  $mname"
110        sname=`echo $mname | sed 's/-$//'`
111    
112      dir_list=`grep $mname ./dir_all`      dir_list=`grep $mname ./dir_all`
113      echo -n "" > ./mlist      echo -n "" > ./mlist
# Line 137  for mname in $MACHINES ; do Line 138  for mname in $MACHINES ; do
138    
139          ADJOINT=          ADJOINT=
140          RESTART=0          RESTART=0
141          NOI3E=0          FAST=0
142            DVLP=0
143          MTH=0          MTH=0
144            UR4=0
145          if test -r $dir/summary.txt ; then          if test -r $dir/summary.txt ; then
146              comm=`grep 'ADJOINT=true' $dir/summary.txt 2>/dev/null`              comm=`grep 'ADJOINT=true' $dir/summary.txt 2>/dev/null`
147              eval $comm              eval $comm
148              RESTART=`grep -c 'test 2+2=4 summary' $dir/summary.txt`              RESTART=`grep -c 'test 2+2=4 summary' $dir/summary.txt`
149              NOI3E=`grep -c "^run: .*testreport.* '*-noieee'*" $dir/summary.txt`              FAST=`grep -c "^run: .*testreport.* '*-fast'*" $dir/summary.txt`
150                if test "x$FAST" = x0 ; then
151                  FAST=`grep -c "^run: .*testreport.* '*-noieee'*" $dir/summary.txt`
152                fi
153                DVLP=`grep -c "^run: .*testreport.* '*-devel'*" $dir/summary.txt`
154              MTH=`grep -c "^run: .*testreport.* -mth " $dir/summary.txt`              MTH=`grep -c "^run: .*testreport.* -mth " $dir/summary.txt`
155                UR4=`grep -c "^run: .*testreport.* -use_r4 " $dir/summary.txt`
156                if test "x$UR4" = x0 ; then
157                   UR4=`grep -c "^run: .*testreport.* -ur4 " $dir/summary.txt`
158                fi
159          fi          fi
160          if test "x$RESTART" = x0 ; then          if test "x$RESTART" = x0 ; then
161              kind="forward"              kind="forward"
# Line 152  for mname in $MACHINES ; do Line 163  for mname in $MACHINES ; do
163          else          else
164              kind="restart"              kind="restart"
165          fi          fi
166            if test "x$UR4" = x1 ; then
167                OPTFILE="${OPTFILE}.use_r4"
168            fi
169          if test "x$MTH" = x1 ; then          if test "x$MTH" = x1 ; then
170              yy=`echo $OPTFILE | grep -c '+mth$'`              yy=`echo $OPTFILE | grep -c '+mth$'`
171              if test $yy = 0 ; then OPTFILE="${OPTFILE}+mth" ; fi              if test $yy = 0 ; then OPTFILE="${OPTFILE}+mth" ; fi
172          fi          fi
173          if test "x$NOI3E" = x1 ; then          if test "x$FAST" = x1 ; then
174              OPTFILE="${OPTFILE}.noieee"              OPTFILE="${OPTFILE}.fast"
175            fi
176            if test "x$DVLP" = x1 ; then
177                OPTFILE="${OPTFILE}.dvlp"
178          fi          fi
179    
180          t_pass="--"          t_pass="--"
# Line 206  for mname in $MACHINES ; do Line 223  for mname in $MACHINES ; do
223              URL="results/$PERIOD/$ldir"              URL="results/$PERIOD/$ldir"
224              cat <<EOF >>$OUTFILE              cat <<EOF >>$OUTFILE
225  <tr bgcolor="$color">  <tr bgcolor="$color">
226    <td height="0"> $mname </td>    <td height="0"> $sname </td>
227    <td> $optf </td>    <td> $optf </td>
228    <td> $kind </td>    <td> $kind </td>
229    <td> <a href="$res_url$URL">$DAY</a> </td>    <td> <a href="$res_url$URL">$DAY</a> </td>

Legend:
Removed from v.1.61  
changed lines
  Added in v.1.68

  ViewVC Help
Powered by ViewVC 1.1.22