--- mitgcm.org/front_content/make_summary 2010/01/20 03:02:49 1.60 +++ mitgcm.org/front_content/make_summary 2010/03/19 16:06:37 1.63 @@ -1,6 +1,6 @@ #! /usr/bin/env bash -# $Header: /home/ubuntu/mnt/e9_copy/mitgcm.org/front_content/make_summary,v 1.60 2010/01/20 03:02:49 jmc Exp $ +# $Header: /home/ubuntu/mnt/e9_copy/mitgcm.org/front_content/make_summary,v 1.63 2010/03/19 16:06:37 jmc Exp $ # # The purpose of this script is to create HTML summaries of the # directories produced by the "parse_emails" script. @@ -19,6 +19,7 @@ exit 1 } +export LC_ALL="en_US.UTF-8" CURR_PER=`date +%Y`"_"`date +%m` # defaults PERIOD=$CURR_PER @@ -84,9 +85,9 @@ color="#bbffdd" ncolor="#bbddff" -MACHINES="faulks meander lagoon harbor dickens danton aces" -MACHINES="$MACHINES beagle columbia pleiades iblade rays solssrv solasrv sx8" -MACHINES="$MACHINES bigred starp" +MACHINES="faulks meander lagoon aces dickens danton beagle harbor" +MACHINES="$MACHINES columbia pleiades iblade rays solssrv solasrv sx8" +MACHINES="$MACHINES trane dodongo dokdo bigred" ( cd $INDIR ; ls -1 -t */summary.txt | sed 's/\/summary.txt//' ) > ./dir_all @@ -138,12 +139,17 @@ RESTART=0 NOI3E=0 MTH=0 + UR4=0 if test -r $dir/summary.txt ; then comm=`grep 'ADJOINT=true' $dir/summary.txt 2>/dev/null` eval $comm RESTART=`grep -c 'test 2+2=4 summary' $dir/summary.txt` NOI3E=`grep -c "^run: .*testreport.* '*-noieee'*" $dir/summary.txt` MTH=`grep -c "^run: .*testreport.* -mth " $dir/summary.txt` + UR4=`grep -c "^run: .*testreport.* -use_r4 " $dir/summary.txt` + if test "x$UR4" = x0 ; then + UR4=`grep -c "^run: .*testreport.* -ur4 " $dir/summary.txt` + fi fi if test "x$RESTART" = x0 ; then kind="forward" @@ -151,6 +157,9 @@ else kind="restart" fi + if test "x$UR4" = x1 ; then + OPTFILE="${OPTFILE}.use_r4" + fi if test "x$MTH" = x1 ; then yy=`echo $OPTFILE | grep -c '+mth$'` if test $yy = 0 ; then OPTFILE="${OPTFILE}+mth" ; fi