/[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.66 by jmc, Tue Jun 28 18:31:20 2011 UTC revision 1.69 by jmc, Fri Aug 19 20:38:19 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 aces baudelaire dickens danton beagle harbor"  MACHINES="faulks meander aces- acesgrid baudelaire dickens danton beagle harbor"
89  MACHINES="$MACHINES pleiades iblade rays solasrv sx8"  MACHINES="$MACHINES pleiades iblade rays solasrv sx8"
90  MACHINES="$MACHINES trane dodongo dokdo stomp bigred"  MACHINES="$MACHINES trane dodongo dokdo stomp bigred"
91    
# 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 139  for mname in $MACHINES ; do Line 140  for mname in $MACHINES ; do
140          RESTART=0          RESTART=0
141          FAST=0          FAST=0
142          DVLP=0          DVLP=0
143            MPI=0
144          MTH=0          MTH=0
145          UR4=0          UR4=0
146          if test -r $dir/summary.txt ; then          if test -r $dir/summary.txt ; then
# Line 150  for mname in $MACHINES ; do Line 152  for mname in $MACHINES ; do
152                FAST=`grep -c "^run: .*testreport.* '*-noieee'*" $dir/summary.txt`                FAST=`grep -c "^run: .*testreport.* '*-noieee'*" $dir/summary.txt`
153              fi              fi
154              DVLP=`grep -c "^run: .*testreport.* '*-devel'*" $dir/summary.txt`              DVLP=`grep -c "^run: .*testreport.* '*-devel'*" $dir/summary.txt`
155                MPI=`grep -c "^run: .*testreport.* -mpi " $dir/summary.txt`
156                if test "x$MPI" = x0 ; then
157                   MPI=`grep -c "^run: .*testreport.* -MPI " $dir/summary.txt`
158                fi
159              MTH=`grep -c "^run: .*testreport.* -mth " $dir/summary.txt`              MTH=`grep -c "^run: .*testreport.* -mth " $dir/summary.txt`
160              UR4=`grep -c "^run: .*testreport.* -use_r4 " $dir/summary.txt`              UR4=`grep -c "^run: .*testreport.* -use_r4 " $dir/summary.txt`
161              if test "x$UR4" = x0 ; then              if test "x$UR4" = x0 ; then
# Line 165  for mname in $MACHINES ; do Line 171  for mname in $MACHINES ; do
171          if test "x$UR4" = x1 ; then          if test "x$UR4" = x1 ; then
172              OPTFILE="${OPTFILE}.use_r4"              OPTFILE="${OPTFILE}.use_r4"
173          fi          fi
174            if test "x$MPI" = x1 ; then
175                yy=`echo $OPTFILE | grep -c '+mpi'`
176                if test $yy = 0 ; then OPTFILE="${OPTFILE}+mpi" ; fi
177            fi
178          if test "x$MTH" = x1 ; then          if test "x$MTH" = x1 ; then
179              yy=`echo $OPTFILE | grep -c '+mth$'`              yy=`echo $OPTFILE | grep -c '+mth$'`
180              if test $yy = 0 ; then OPTFILE="${OPTFILE}+mth" ; fi              if test $yy = 0 ; then OPTFILE="${OPTFILE}+mth" ; fi
# Line 222  for mname in $MACHINES ; do Line 232  for mname in $MACHINES ; do
232              URL="results/$PERIOD/$ldir"              URL="results/$PERIOD/$ldir"
233              cat <<EOF >>$OUTFILE              cat <<EOF >>$OUTFILE
234  <tr bgcolor="$color">  <tr bgcolor="$color">
235    <td height="0"> $mname </td>    <td height="0"> $sname </td>
236    <td> $optf </td>    <td> $optf </td>
237    <td> $kind </td>    <td> $kind </td>
238    <td> <a href="$res_url$URL">$DAY</a> </td>    <td> <a href="$res_url$URL">$DAY</a> </td>

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

  ViewVC Help
Powered by ViewVC 1.1.22