/[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.18 by edhill, Thu Jul 8 21:32:07 2004 UTC revision 1.81 by jmc, Tue Mar 24 18:20:16 2015 UTC
# Line 5  Line 5 
5  #  The purpose of this script is to create HTML summaries of the  #  The purpose of this script is to create HTML summaries of the
6  #  directories produced by the "parse_emails" script.  #  directories produced by the "parse_emails" script.
7    
   
8  usage()  usage()
9  {  {
10      echo      echo
11      echo "Usage:  $0 [OPTIONS]"      echo "Usage:  $0 [OPTIONS]"
12      echo      echo
13      echo "where possible OPTIONS are:"      echo "where possible OPTIONS are:"
14      echo "  (-help|-h)           print usage"      echo "  (-help|-h)           print usage"
15      echo "  (-date |-d )PERIOD   run for PERIOD=\"YYYY_MM\""      echo "  (-date |-d )PERIOD   run for PERIOD=\"YYYY_MM\""
16      echo "                         [def=\"$PERIOD\"]"      echo "                         [def=\"$PERIOD\"]"
17      echo      echo
18      exit 1      exit 1
19  }  }
20    
21  old_summary()  export LC_ALL="en_US.UTF-8"
22  {  CURR_PER=`date +%Y`"_"`date +%m`
     #  Create the old-style summary file for $PERIOD  
     echo -n "Creating the summary file for the period \"$PERIOD\" ...  "  
     cat > $OUTFILE << EOF  
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
   
 <html xmlns="http://www.w3.org/1999/xhtml">  
   <head>  
     <title>MITgcm testing summary</title>  
     <meta name="author" content="Ed Hill" />  
     <base href="http://mitgcm.org/testing/summary/" />  
   </head>  
   <body>  
     <table cellpadding="0" cellspacing="0" border="0" width="100%">  
   
 EOF  
   
     # all_files=`find $INDIR -name summary.txt`  
     all_files=`( cd $INDIR ; find . -name summary.txt )`  
   
     for f in $all_files ; do  
           
         file=$INDIR"/"${f/.\//}  
         grep "^fresults" $file > /dev/null 2>&1  
         RETVAL=$?  
         if test "x$RETVAL" != x0 ; then  
             continue  
         fi  
           
         url=`echo $file | sed -e 's|/u/edhill/www|http://mitgcm.org/~edhill|'`  
         url=`echo $url | sed -e 's|summary.txt||'`  
         MACH=  
         fresults=  
         color="#eeeeee"  
           
         source $file  
         echo $fresults | grep FAIL > /dev/null 2>&1  
         if test "x$?" = x0 ; then  
             color="#ff99ff"  
         fi  
         echo $fresults | grep pass > /dev/null 2>&1  
         if test "x$?" = x0 ; then  
             color="#99ffff"  
         fi  
           
         gm_state=`echo $file | sed -e 's/summary.txt/genmake_state/g'`  
         if test -r $gm_state ; then  
             grep '^OPTFILE=' $gm_state > ./tmp_state  
             source ./tmp_state  
         else  
             optfile="unknown"  
         fi  
         optfile=`echo $OPTFILE | awk -F '/' '{print $NF}'`  
           
         echo "<tr bgcolor=\"$color\">" >> $OUTFILE  
         echo "<td height=\"0\">$MACH</td>" >> $OUTFILE  
         echo "<td><a href=\"$url\">$DATE</a></td>" >> $OUTFILE  
         for i in $fresults ; do  
             if test "x$i" = xN ; then  
                 echo -n "<td bgcolor=\"#ff6666\">$i</td>" >> $OUTFILE  
             else  
                 echo -n "<td>$i</td>" >> $OUTFILE  
             fi  
         done  
         echo "<td>$optfile</td>" >> $OUTFILE  
         echo "</tr>" >> $OUTFILE  
           
     done  
       
     cat >> $OUTFILE << EOF  
   
     </table>  
   </body>  
 </html>  
 EOF  
   
     chmod a+r $OUTFILE  
     echo "done"  
 }  
   
   
23  # defaults  # defaults
24  PERIOD=`date +%Y`"_"`date +%m`  PERIOD=$CURR_PER
25    
26  #  Parse options  #  Parse options
27  ac_prev=  ac_prev=
28  for ac_option ; do  for ac_option ; do
29            
30      # If the previous option needs an argument, assign it.      # If the previous option needs an argument, assign it.
31      if test -n "$ac_prev"; then      if test -n "$ac_prev"; then
32          eval "$ac_prev=\$ac_option"          eval "$ac_prev=\$ac_option"
33          ac_prev=          ac_prev=
34          continue          continue
35      fi      fi
36        
37      ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`      ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
38        
39      case $ac_option in      case $ac_option in
40            
41          -help | --help | -h | --h)          -help | --help | -h | --h)
42              usage ;;              usage ;;
43            
44          -date | --date | -d | --d)          -date | --date | -d | --d)
45              ac_prev=PERIOD ;;              ac_prev=PERIOD ;;
46          --date=* | -date=*)          --date=* | -date=*)
47              PERIOD=$ac_optarg ;;              PERIOD=$ac_optarg ;;
48            
49          *)          *)
50              echo "Error: don't understand argument \"$ac_option\""              echo "Error: don't understand argument \"$ac_option\""
51              usage              usage
52              ;;              ;;
53            
54       esac       esac
55        
56  done  done
57    
58    #INDIR="/net/orwell/export/export-9/mitgcm-testing/results/$PERIOD"
59    #OUTDIR="/home/jmc/mitgcm/test_web/summary"
60  INDIR="/u/u0/httpd/html/testing/results/$PERIOD"  INDIR="/u/u0/httpd/html/testing/results/$PERIOD"
61  OUTDIR="/u/u0/httpd/html/testing/summary"  OUTDIR="/u/u0/httpd/html/testing/summary"
 OUTFILE=$OUTDIR"/summary_"$PERIOD".html"  
62    
63  #  Create the "latest" links  OUTFILE=$OUTDIR"/output_"$PERIOD".html"
64    res_url="http://mitgcm.org/testing/"
65    
66    #TMP=./mksum_$$
67    #- try to put temporary files in system-local /tmp dir
68    TMP=/tmp/mksum_$$
69    touch $TMP ; retVal=$?
70    if [ $retVal -eq 0 ] ; then
71      if test ! -r $TMP ; then TMP=./mksum_$$ ; fi
72    else
73      TMP=./mksum_$$
74    fi
75    rm -f $TMP
76    # echo "temp files: $TMP"
77    
78    #  Create the links in $OUTFILE :
79  echo "Creating the \"latest\" file for each machine: "  echo "Creating the \"latest\" file for each machine: "
 LATEST=$OUTDIR"/latest_"$PERIOD".html"  
80  the_date=`date`  the_date=`date`
 cat > $LATEST << EOF  
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
   
 <html xmlns="http://www.w3.org/1999/xhtml">  
   <head>  
     <title>MITgcm testing summary</title>  
     <meta name="author" content="Ed Hill" />  
   
     <!-- <base href="http://mitgcm.org/testing/summary/" /> -->  
   
     <!-- Hinting for menu generation -->  
     <meta name="add_name_0" content="Testing" />  
     <meta name="add_name_1" content="" />  
     <meta name="add_name_2" content="" />  
     <meta name="add_title" content="Testing" />  
     <!-- Hinting for menu generation -->  
   
   </head>  
   <body>  
     <p>The MITgcm model is tested  
       (compiled and run) in an automated fashion on a varirety of  
       different machines.  The following is a summary of the MITgcm  
       verification suite for the time period: <b>$PERIOD</b>.</p>  
   
     <p>The machine naming scheme is:<br /></p>  
     <table align="center" cellpadding="0" border="0">  
       <tr bgcolor="#00cccc"> <td><b>Machine Type</b></td> <td><b>Nickname</b></td>  
         <td><b>Notes</b></td> </tr>  
   
       <tr bgcolor="#bbffdd"> <td>Intel P4</td> <td>"faulks"</td>  
         <td>Fedora Core 1 [formerly Red Hat 7.3]</td> </tr>  
       <tr bgcolor="#bbddff"> <td>Intel P4</td> <td>"hemmingway"</td>  
         <td>Fedora Core 1 (gcc 3.3.2)</td> </tr>  
   
       <tr bgcolor="#bbffdd"> <td> Intel P3/P4 Beowulf </td> <td>"myrinet"</td>  
         <td><a href="http://mitgcm.org/projects/MITGCM_CLUSTER/">MITgcm cluster  
         facility </a></td> </tr>  
       <tr bgcolor="#bbddff"> <td>Alpha cluster</td> <td>"halem"</td>  
         <td><a href="http://nccstag.gsfc.nasa.gov/halem/quickstart_halem.html">  
         NASA NCCS Halem</a></td> </tr>  
   
       <tr bgcolor="#bbffdd"> <td> SGI Origin 2000 </td> <td>"hopper"</td>  
         <td><a href="http://www.nas.nasa.gov/User/Systemsdocs/O2K/o2k.html">  
         NAS SGI Origin 2000 </a></td> </tr>  
       <tr bgcolor="#bbddff"> <td> SGI Origin 3000 </td> <td>"lomax"</td>  
         <td><a href="http://www.nas.nasa.gov/User/Systemsdocs/O3K/o3k.html">  
         NAS SGI Origin 3000 </a></td> </tr>  
   
       <!-- <tr bgcolor="#bbffdd"> <td> SGI Altix </td> <td>"orion"</td>  
         <td><a href="http://sc.jpl.nasa.gov/">JPL Supercomputing and  
         Visualization Facility</a></td> </tr> -->  
       <tr bgcolor="#bbffdd"> <td> SGI Altix 350 </td> <td>"altix350"</td>  
         <td><a href="http://acesgrid.org/geocluster/">MIT ACESgrid  
         GeoCluster</a></td> </tr>  
       <tr bgcolor="#bbddff"> <td> IBM POWER3 SP </td> <td>"bf"</td>  
         <td><a href="http://www.scd.ucar.edu/computers/blackforest/">NCAR Blackforest  
         </a></td> </tr>  
   
       <tr bgcolor="#bbffdd"> <td> IBM POWER4 SP </td> <td>"bs"</td>  
         <td><a href="http://www.scd.ucar.edu/computers/bluesky/">NCAR Bluesky  
         </a></td> </tr>  
       <tr bgcolor="#bbddff"> <td> AMD Opteron </td> <td>"adams"</td>  
         <td>RHEL v3 (AMD64)</td> </tr>  
   
       <tr bgcolor="#bbffdd"> <td> Sun UltraSparc </td> <td>"slough"</td>  
         <td>Solaris 8</td> </tr>  
       <tr bgcolor="#bbddff"> <td> Intel P4 Mosix Cluster </td> <td>"sea"</td>  
         <td>Red Hat v7.2</td> </tr>  
   
       <tr bgcolor="#bbffdd"> <td> AMD Athlon XP 2500+</td> <td>"eddy"</td>  
         <td>Fedora Core 2 (Red Hat gcc 3.3.3)</td> </tr>  
       <tr bgcolor="#bbddff"> <td> AMD Opteron cluster </td> <td>"dolphin"</td>  
         <td>SuSE SLES v8.1</td> </tr>  
   
       <!--  
   
       <tr bgcolor="#bbffdd"> <td> Intel P4 </td> <td>"hemmingway"</td>  
         <td>Fedora Core release 1 (gcc 3.3.2) </td> </tr>  
   
       <tr bgcolor="#bbddff"> <td>  </td> <td>""</td>  
         <td></td> </tr>  
       -->  
   
     </table>  
81    
82      <p><br />  sed "s/_PERIOD/$PERIOD/" summary_head > $OUTFILE
83        The complete output for the verification runs can be found in  cat <<EOF >>$OUTFILE
       <a href="http://mitgcm.org/testing/summary/">the summary pages</a>  
       and the <a href="http://mitgcm.org/testing/results/">testing archives</a>.  
       The latest reports are:</p>  
84      <table align="center" cellpadding="0" cellspacing="0" border="0" width="95%">      <table align="center" cellpadding="0" cellspacing="0" border="0" width="95%">
85  <tr bgcolor="#00cccc">  <tr bgcolor="#00cccc">
86    <td height="0"> <b>Nickname</b> </td>    <td height="0"> <b>Nickname</b> </td>
# Line 250  EOF Line 95  EOF
95    
96  color="#bbffdd"  color="#bbffdd"
97  ncolor="#bbddff"  ncolor="#bbddff"
 res_url="http://mitgcm.org/testing/"  
98    
99  MACHINES="faulks shelley myrinet eaps halem hopper lomax orion bf bs slough sea"  MACHINES="aces- acesgrid baudelaire danton iblade sx8 uv100 pleiades"
100  MACHINES="$MACHINES  eddy adams dolphin hemmingway altix350"  MACHINES="$MACHINES stomp octopus engaging saramago svante glacier"
101    
102  ( cd $INDIR ; ls -1 -t ) > ./dir_all  ( cd $INDIR ; ls -1 -t */summary.txt | sed 's/\/summary.txt//' ) > $TMP.dir_all
103    
104    MALL=`cat $TMP.dir_all | sed -e 's|_| |g' | awk '{print $2}' | sort | uniq`
105    for madd in $MALL ; do
106        present=0
107        for m in $MACHINES ; do
108            echo $madd | grep $m > /dev/null 2>&1
109            RETVAL=$?
110            test $RETVAL = 0  &&  present=1
111            continue
112        done
113        test $present = 0  &&  MACHINES="$MACHINES $madd"
114    done
115    #MACHINES="baudelaire"
116    
117  for mname in $MACHINES ; do  for mname in $MACHINES ; do
118    
119      echo "  $mname"      echo "  $mname"
120    
121      dir_list=`grep $mname ./dir_all`      dir_list=`grep $mname $TMP.dir_all`
122      echo -n "" > ./mlist      echo -n "" > $TMP.mlist
123    
124      for i in $dir_list ; do      for i in $dir_list ; do
125    
# Line 279  for mname in $MACHINES ; do Line 136  for mname in $MACHINES ; do
136              OPTFILE=${OPTFILE##*/}              OPTFILE=${OPTFILE##*/}
137          fi          fi
138          if test "x$OPTFILE" = x ; then          if test "x$OPTFILE" = x ; then
139              comm=`grep '^# OPTFILE=' $dir/*/Makefile 2>/dev/null | head -1`              comm=`grep '^# OPTFILE=' $dir/*/Makefile* 2>/dev/null | head -1`
140              comm=${comm##*#}              comm=${comm##*#}
141              eval $comm              eval $comm
142              OPTFILE=${OPTFILE##*/}              OPTFILE=${OPTFILE##*/}
# Line 288  for mname in $MACHINES ; do Line 145  for mname in $MACHINES ; do
145              OPTFILE="not_explicitly_specified"              OPTFILE="not_explicitly_specified"
146          fi          fi
147    
148          ADJOINT=          # EXTRA = non-standard list of experiment
149            ADJOINT=0
150            TANGLIN=0
151            OPENAD=0
152            RESTART=0
153            EXTRA=
154            FAST=0
155            DVLP=0
156            MPI=0
157            MTH=0
158            UR4=0
159          if test -r $dir/summary.txt ; then          if test -r $dir/summary.txt ; then
160              comm=`grep 'ADJOINT=true' $dir/summary.txt 2>/dev/null`              ADJOINT=`grep -c -i '^ADJOINT' $dir/summary.txt`
161              eval $comm              if test "x$ADJOINT" = x1 ; then
162                  OPENAD=`grep -c '^Adjoint .* OpenAD' $dir/summary.txt`
163                fi
164                TANGLIN=`grep -c -i '^TANGLIN' $dir/summary.txt`
165                if test "x$TANGLIN" = x1 ; then
166                  OPENAD=`grep -c '^TangLin .* OpenAD' $dir/summary.txt`
167                fi
168                RESTART=`grep -c 'test 2+2=4 summary' $dir/summary.txt`
169                comm=`grep '^run: .*testreport.* ' $dir/summary.txt`
170                EXTRA=`echo "$comm" | grep " -*-tdir\>" | sed -e "s/^.* -*-tdir\>//" -e "s/ -.*$//"`
171                if test "x$EXTRA" = x ; then
172                    EXTRA=`echo "$comm" | grep " -*-t\>" | sed -e "s/^.*-*-t\>//" -e "s/ -.*$//"`
173                fi
174                if test "x$EXTRA" = x ; then EXTRA=0 ; else
175                    #echo -n "EXTRA=$EXTRA"
176                    nn0=`echo $EXTRA | sed "s/ *' *//g" | wc -w`
177                    nn1=`echo $EXTRA | sed "s/ *' *//g" | tr ' ' '\n' | grep -c "\<monod_"`
178                    nn2=`echo $EXTRA | sed "s/ *' *//g" | tr ' ' '\n' | grep -c "\<darwin_"`
179                    EXTRA=1
180                    if [ $nn1 -ge 2 ] ; then EXTRA=2 ; fi
181                    if [ $nn2 -ge 2 ] ; then EXTRA=3 ; fi
182                    #echo " : nn0=$nn0 ; nn1=$nn1 ; nn2=$nn2"
183                fi
184                FAST=`echo "$comm" | grep -c " -*-fast\>"`
185                if test "x$FAST" = x0 ; then
186                    FAST=`echo "$comm" | grep -c " '*-noieee'*"`
187                fi
188                DVLP=`echo "$comm" | grep -c " -*-devel\>"`
189                MPI=`echo "$comm" | grep -c " -*-mpi\>"`
190                if test "x$MPI" = x0 ; then
191                    MPI=`echo "$comm" | grep -c " -*-MPI\>"`
192                fi
193                MTH=`echo "$comm" | grep -c " -*-mth\>"`
194                UR4=`echo "$comm" | grep -c " -*-use_r4\>"`
195                if test "x$UR4" = x0 ; then
196                    UR4=`echo "$comm" | grep -c " -*-ur4\>"`
197                fi
198          fi          fi
199          if test "x$ADJOINT" = x ; then          if test "x$ADJOINT" = x1 ; then
200              kind="forward"              kind="adjoint-taf" ; order=0
201              if test "x$OPENAD" = x1 ; then
202                kind="adjoint-oad" ; order=2
203              fi
204            elif test "x$TANGLIN" = x1 ; then
205                kind="tanglin-taf" ; order=1
206              if test "x$OPENAD" = x1 ; then
207                kind="tanglin-oad" ; order=3
208              fi
209            elif test "x$RESTART" = x0 ; then
210                kind="forward" ; order=4
211          else          else
212              test "x$ADJOINT" = xtrue  &&  kind="adjoint"              kind="restart" ; order=5
213            fi
214            order=`expr $order + 10 \* $EXTRA`
215            order=`printf '%3.3i' $order`
216            if test "x$UR4" = x1 ; then
217                OPTFILE="${OPTFILE}.use_r4"
218            fi
219            if test "x$MPI" = x1 ; then
220                yy=`echo $OPTFILE | grep -c '+mpi'`
221                if test $yy = 0 ; then OPTFILE="${OPTFILE}+mpi" ; fi
222            fi
223            if test "x$MTH" = x1 ; then
224                yy=`echo $OPTFILE | grep -c '+mth$'`
225                if test $yy = 0 ; then OPTFILE="${OPTFILE}+mth" ; fi
226            fi
227            if test "x$FAST" = x1 ; then
228                OPTFILE="${OPTFILE}.fast"
229            fi
230            if test "x$DVLP" = x1 ; then
231                OPTFILE="${OPTFILE}.dvlp"
232          fi          fi
233    
234          t_pass="--"          t_pass="--"
235          t_tot="--"          t_tot="--"
236          if test -r $dir/summary.txt ; then          if test -r $dir/summary.txt ; then
237              grep '^[YN] [YN] [YN] [YN] ' $dir/summary.txt > ./all_tests 2>/dev/null              grep '^[YN] [YN] [YN] [YN]' $dir/summary.txt > ./all_tests 2>/dev/null
238              t_tot=`cat ./all_tests | wc -l | sed -e 's| ||g'`              t_tot=`cat ./all_tests | wc -l | sed -e 's| ||g'`
239              grep '^Y Y Y Y ' ./all_tests > ./all_ran 2>/dev/null              t_pass=`grep '^Y Y Y Y' ./all_tests | grep 'pass ' | wc -l | sed -e 's| ||g'`
             grep advect_ ./all_ran 2>/dev/null > ./all_ran_advect  
             t_advect=`cat ./all_ran_advect | wc -l | sed -e 's| ||g'`  
             digits=`cat ./all_ran_advect | awk '{print $9}'`  
             t_advect_pass=0  
             for k in $digits ; do  
                 test "x$k" = x--   &&  k=0  
                 test $k -ge 9  &&  t_advect_pass=$(( $t_advect_pass + 1 ))  
             done  
             grep -v advect ./all_ran 2>/dev/null > ./all_ran_noadvect  
             digits=`cat ./all_ran_noadvect | awk '{print $5}'`  
             t_sum=0  
             for k in $digits ; do  
                 test "x$k" = x--   &&  k=0  
                 test $k -ge 9  &&  t_sum=$(( $t_sum + 1 ))  
             done  
             t_pass=$(( $t_sum + $t_advect_pass ))  
240          fi          fi
241          rm -f ./all_tests ./all_ran ./all_ran_advect ./all_ran_noadvect          rm -f ./all_tests
242          # echo "${dir##*/} : $t_pass out of $t_tot"          # echo "${dir##*/} : $t_pass out of $t_tot"
243    
244          tokens=`echo $i | sed -e 's|_| |g'`          tokens=`echo $i | sed -e 's|_| |g'`
# Line 330  for mname in $MACHINES ; do Line 246  for mname in $MACHINES ; do
246          for tok in $tokens ; do          for tok in $tokens ; do
247              echo $tok >> ./ms_tmp              echo $tok >> ./ms_tmp
248          done          done
249          DAY=`cat ./ms_tmp | awk '(length($1)==8 && substr($1,0,3)=="200")'`          DAY=`cat ./ms_tmp | awk '(length($1)==8 && substr($1,0,2)=="20")'`
250          rm -f ./ms_tmp          rm -f ./ms_tmp
251    
252          echo "$OPTFILE$kind $DAY $OPTFILE $kind $i $t_pass:$t_tot" >> ./mlist          echo "$OPTFILE$order $DAY $OPTFILE $kind $i $t_pass:$t_tot" >> $TMP.mlist
253    
254      done      done
255    
256      # helpful for debugging      # helpful for debugging
257      # cat ./mlist      # cat $TMP.mlist
258    
259      #  Do we have any data?  If so, create the latest pointer.      #  Do we have any data?  If so, create the latest pointer.
260      num=`wc -l ./mlist | awk '{print $1}'`      num=`wc -l $TMP.mlist | awk '{print $1}'`
261      if test $num -gt 0 ; then      if test $num -gt 0 ; then
262    
263          # swap colors          # swap colors
264          ctmp=$color          ctmp=$color
265          color=$ncolor          color=$ncolor
266          ncolor=$ctmp          ncolor=$ctmp
267    
268          keys=`cat ./mlist | cut -d " " -f 1 | sort | uniq`          keys=`cat $TMP.mlist | cut -d " " -f 1 | sort | uniq`
269    
270          for key in $keys ; do          for key in $keys ; do
271              tline=`grep "^$key " ./mlist | head -1`              tline=`grep "^$key " $TMP.mlist | head -1`
272              ratio=`echo $tline | cut -d " " -f 6`              ratio=`echo $tline | cut -d " " -f 6`
273              ldir=`echo $tline | cut -d " " -f 5`              ldir=`echo $tline | cut -d " " -f 5`
274              kind=`echo $tline | cut -d " " -f 4`              kind=`echo $tline | cut -d " " -f 4`
275              optf=`echo $tline | cut -d " " -f 3`              optf=`echo $tline | cut -d " " -f 3`
276              DAY=`echo $tline | cut -d " " -f 2`              DAY=`echo $tline | cut -d " " -f 2`
277              URL="results/$PERIOD/$ldir"              URL="results/$PERIOD/$ldir"
278              cat <<EOF >>$LATEST              #-- machine name to print:
279                sname=`echo $mname | sed 's/-$//'`
280                alt=`echo $key | sed "s/$optf//"`
281               #if   [ $alt -ge 30 ] ; then sname="${sname}.darwin"
282               #elif [ $alt -ge 20 ] ; then sname="${sname}.monod" ; fi
283                cat <<EOF >>$OUTFILE
284  <tr bgcolor="$color">  <tr bgcolor="$color">
285    <td height="0"> $mname </td>    <td height="0"> $sname </td>
286    <td> $optf </td>    <td> $optf </td>
287    <td> $kind </td>    <td> $kind </td>
288    <td> <a href="$res_url$URL">$DAY</a> </td>    <td> <a href="$res_url$URL">$DAY</a> </td>
# Line 374  EOF Line 295  EOF
295    
296  done  done
297    
298  cat >> $LATEST << EOF  cat >> $OUTFILE << EOF
299  <tr bgcolor="#00cccc">  <tr bgcolor="#00cccc">
300    <td height="0" colspan="6" align="center" >This table generated on: $the_date</td>    <td height="0" colspan="6" align="center" >This table generated on: $the_date</td>
301  </tr>  </tr>
302    
303      </table>      </table>
304    
305  <p>Examples of the scripts used for these testing runs can be obtained  <p>Examples of the scripts used for these testing runs can be obtained from: <a
306  from <a  href="http://mitgcm.org/viewvc/MITgcm/MITgcm/tools/example_scripts/">
307  href="http://dev.mitgcm.org/cgi-bin/viewcvs.cgi/MITgcm_contrib/test_scripts/">  MITgcm/tools/example_scripts</a>.</p>
 the "contrib" area of the MITgcm CVS archive</a>.</p>  
   
308    
309    </body>    </body>
310  </html>  </html>
311    
312  EOF  EOF
313    
314  rm -f ./dir_all ./mlist  rm -f $TMP.dir_all $TMP.mlist
315    
316    #- put the file in place
317    chgrp gcmpack $OUTFILE
318    chmod 664 $OUTFILE
319    LATEST=$OUTDIR"/latest_"$PERIOD".html"
320    mv -f $OUTFILE $LATEST
321    
 CURR_PER=`date +%Y`"_"`date +%m`  
322  if test "x$PERIOD" = "x$CURR_PER" ; then  if test "x$PERIOD" = "x$CURR_PER" ; then
323      cp $LATEST ./testing.xml      cp $LATEST ./testing.xml
324      (      (

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.81

  ViewVC Help
Powered by ViewVC 1.1.22