--- MITgcm/verification/testreport 2004/12/09 15:52:33 1.55 +++ MITgcm/verification/testreport 2004/12/09 16:52:08 1.57 @@ -1,6 +1,6 @@ #! /usr/bin/env bash # -# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/verification/testreport,v 1.55 2004/12/09 15:52:33 edhill Exp $ +# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/verification/testreport,v 1.57 2004/12/09 16:52:08 jmc Exp $ # $Name: $ # @@ -520,7 +520,7 @@ int main( int argc, char** argv ) { int linnum,best,lncnt; double a,b,abave,relerr; - best = -16; + best = -22; lncnt = 0; while( 1 & (lncnt+=1) < 999 ) { scanf("%d", &linnum); @@ -529,13 +529,9 @@ abave = 0.5*(fabs(a)+fabs(b)); if (abave > 0.0) { relerr=fabs(a-b)/abave; - if (relerr > 0.0) { - linnum = (int)log10(relerr); - best = (best > linnum) ? best : linnum; - } - } - else { - if (best == -16) best = -22; + if (relerr > 0.0) { linnum = (int)log10(relerr); } + else { linnum = -16 ; } + best = (best > linnum) ? best : linnum; } } if (lncnt == 999) best=-29; @@ -968,8 +964,6 @@ echo "DATE='$DATE'" >> $CDIR"/summary.txt" echo "tdir='$dir'" >> $CDIR"/summary.txt" - OLD_COMMAND=$COMMAND - # COMMAND="./mitgcmuv > output.txt" for ex in $extra_runs ; do test -e "$dir/tr_run.$ex" && rm -rf "$dir/tr_run.$ex" mkdir "$dir/tr_run.$ex" @@ -1002,7 +996,6 @@ echo "DATE='$DATE'" >> $CDIR"/summary.txt" echo "tdir='$dir'" >> $CDIR"/summary.txt" done - COMMAND=$OLD_COMMAND else fres=`printf '%s %s %s %s' ${genmake:-N} ${makedepend:-N} ${make:-N} ${run:-N}` fres=$fres"$results $dir"