#! /usr/bin/env bash # $Header: /home/ubuntu/mnt/e9_copy/mitgcm.org/front_content/make_summary,v 1.32 2007/12/25 17:38:26 jmc Exp $ # # The purpose of this script is to create HTML summaries of the # directories produced by the "parse_emails" script. usage() { echo echo "Usage: $0 [OPTIONS]" echo echo "where possible OPTIONS are:" echo " (-help|-h) print usage" echo " (-date |-d )PERIOD run for PERIOD=\"YYYY_MM\"" echo " [def=\"$PERIOD\"]" echo exit 1 } # defaults PERIOD=`date +%Y`"_"`date +%m` # Parse options ac_prev= for ac_option ; do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval "$ac_prev=\$ac_option" ac_prev= continue fi ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` case $ac_option in -help | --help | -h | --h) usage ;; -date | --date | -d | --d) ac_prev=PERIOD ;; --date=* | -date=*) PERIOD=$ac_optarg ;; *) echo "Error: don't understand argument \"$ac_option\"" usage ;; esac done INDIR="/u/u0/httpd/html/testing/results/$PERIOD" OUTDIR="/u/u0/httpd/html/testing/summary" OUTFILE=$OUTDIR"/summary_"$PERIOD".html" # Create the "latest" links echo "Creating the \"latest\" file for each machine: " LATEST=$OUTDIR"/latest_"$PERIOD".html" the_date=`date` cat > $LATEST << EOF
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 Type | Nickname | Notes |
Intel P4 | "faulks" | Fedora Core 3 |
Intel P4 | "hemmingway" | Fedora Core 3 |
Intel P3/P4 Beowulf | "myrinet" | MITgcm cluster facility |
Alpha cluster | "halem" | NASA NCCS Halem |
SGI Altix 350 | "altix350" | MIT ACESgrid GeoCluster |
IBM POWER3 SP | "bf" | NCAR Blackforest |
IBM POWER4 SP | "bs" | NCAR Bluesky |
AMD Opteron | "adams" | Fedora Core 4 (AMD64) |
Sun UltraSparc | "slough" | Solaris 8 |
Intel P4 Mosix Cluster | "sea" | Red Hat v7.2 |
Intel P4 | "eddy" | Fedora Core 5 |
AMD Opteron cluster | "dolphin" | SuSE SLES v8.1 |
IBM/Apple dual G5 | "two" | Mac OSX 10.3 (gcc 3.4) |
ACESgrid Dell Xeon | "aces" | Fedora Core 2 |
The complete output for the verification runs can be found in
the summary pages
and the testing archives.
The latest reports are:
Nickname | OPTFILE Name | Type | Date | Summary | Ratio |
$mname | $optf | $kind | $DAY | summary.txt | $ratio |
This table generated on: $the_date |
Examples of the scripts used for these testing runs can be obtained from: MITgcm/tools/example_scripts.
EOF rm -f ./dir_all ./mlist CURR_PER=`date +%Y`"_"`date +%m` if test "x$PERIOD" = "x$CURR_PER" ; then cp $LATEST ./testing.xml ( cd $OUTDIR rm -f latest.html ln -s $LATEST latest.html ) fi