--- mitgcm.org/front_content/make_summary 2003/12/06 20:06:58 1.1 +++ mitgcm.org/front_content/make_summary 2003/12/09 18:35:57 1.5 @@ -1,6 +1,6 @@ #! /usr/bin/env bash -# $Header: /home/ubuntu/mnt/e9_copy/mitgcm.org/front_content/make_summary,v 1.1 2003/12/06 20:06:58 edhill Exp $ +# $Header: /home/ubuntu/mnt/e9_copy/mitgcm.org/front_content/make_summary,v 1.5 2003/12/09 18:35:57 edhill Exp $ # # The purpose of this script is to create HTML summaries of the # directories produced by the "parse_emails" script. @@ -143,6 +143,7 @@ # Create the "latest" links echo "Creating the \"latest\" file for each machine: " LATEST=$OUTDIR"/latest_"$PERIOD".html" +the_date=`date` cat > $LATEST << EOF @@ -163,21 +164,24 @@ -

The following are the most recent MITgcm testing runs for the - time period $PERIOD.

- The machine naming scheme is:

- - +

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: $PERIOD.

+ +

The machine naming scheme is:

+
Machine "Nickname"
+ - - - - - - - + + + + + + + @@ -199,6 +203,8 @@ + +
Machine Type Nickname Notes
faulks.lcs.mit.edu "faulks"Red Hat 7.3 on an Intel P4 (the "original" testing machine)
shelley.lcs.mit.edu "shelley"Red Hat 9 on an Intel P4
cg01.lcs.mit.edu cluster "myrinet"MITgcm cluster facility -
Intel P4 "faulks"Red Hat 7.3 (the "original" testing machine)
Intel P4 "shelley"Red Hat 9
Intel P3/P4 Beowulf "myrinet"MITgcm cluster + facility
Alpha cluster "halem" NASA NCCS Halem
IBM POWER4 SP "bs" NCAR Bluesky
AMD Opteron "eaps"SuSE Linux 9.0 (x86-64)
-
+ +


+ The complete output for the verification runs can be found in + the summary pages + and the testing archives. + The latest reports are:

- + - + + + EOF @@ -219,7 +232,7 @@ color="#bbffdd" res_url="http://mitgcm.org/testing/" -MACHINES="faulks shelley myrinet halem hopper lomax orion bf bs" +MACHINES="faulks shelley myrinet eaps halem hopper lomax orion bf bs" ( cd $INDIR ; ls -1 ) > ./dir_all @@ -245,18 +258,31 @@ OPTFILE=${OPTFILE##*/} fi if test "x$OPTFILE" = x -a -r "$dir/genmake_state" ; then - comm=`grep 'OPTFILE=' $dir/genmake_state` + comm=`grep 'OPTFILE=' $dir/genmake_state 2>/dev/null` eval $comm OPTFILE=${OPTFILE##*/} fi if test "x$OPTFILE" = x ; then - comm=`grep '^# OPTFILE=' $dir/*/Makefile 2>/dev/null | head -1 | sed -e 's|^# ||'` + comm=`grep '^# OPTFILE=' $dir/*/Makefile 2>/dev/null | head -1` + comm=${comm##*#} eval $comm OPTFILE=${OPTFILE##*/} fi if test "x$OPTFILE" = x ; then OPTFILE="not_explicitly_specified" fi + + ADJOINT= + if test -r $dir/summary.txt ; then + comm=`grep 'ADJOINT=true' $dir/summary.txt 2>/dev/null` + eval $comm + fi + if test "x$ADJOINT" = x ; then + kind="forward" + else + test "x$ADJOINT" = xtrue && kind="adjoint" + fi + tokens=`echo $i | sed -e 's|_| |g'` echo "" > ./ms_tmp for tok in $tokens ; do @@ -264,7 +290,8 @@ done DAY=`cat ./ms_tmp | awk '(length($1)==8 && substr($1,0,3)=="200")'` rm -f ./ms_tmp - echo "$OPTFILE $DAY $i" >> ./mlist + + echo "$OPTFILE$kind $DAY $OPTFILE $kind $i" >> ./mlist done @@ -274,16 +301,22 @@ # Do we have any data? If so, create the latest pointer. num=`wc -l ./mlist | awk '{print $1}'` if test $num -gt 0 ; then - optfiles=`cat ./mlist | cut -d " " -f 1 | sort | uniq` + keys=`cat ./mlist | cut -d " " -f 1 | sort | uniq` - for optf in $optfiles ; do - ldir=`grep "^$optf " ./mlist | sort -r | head -1 | cut -d " " -f 3` + for key in $keys ; do + tline=`grep "^$key " ./mlist | sort -r | head -1` + ldir=`echo $tline | cut -d " " -f 5` + kind=`echo $tline | cut -d " " -f 4` + optf=`echo $tline | cut -d " " -f 3` + DAY=`echo $tline | cut -d " " -f 2` URL="results/$PERIOD/$ldir" cat <>$LATEST - + - + + + EOF done @@ -292,6 +325,11 @@ done cat >> $LATEST << EOF + + +
"Nickname" Nickname OPTFILE Name Date (YYYYMMDD) Type Date Summary
$mname $mname $optf $DAY $kind $DAY summary.txt
+ === This table generated on: $the_date === +
@@ -303,7 +341,7 @@ CURR_PER=`date +%Y`"_"`date +%m` if test "x$PERIOD" = "x$CURR_PER" ; then - cp $LATEST ./results.xml + cp $LATEST ./testing.xml ( cd $OUTDIR rm -f latest.html