--- MITgcm/verification/testreport 2005/01/26 00:24:06 1.63 +++ MITgcm/verification/testreport 2005/02/04 16:41:42 1.66 @@ -1,6 +1,6 @@ #! /usr/bin/env bash # -# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/verification/testreport,v 1.63 2005/01/26 00:24:06 jmc Exp $ +# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/verification/testreport,v 1.66 2005/02/04 16:41:42 edhill Exp $ # $Name: $ # @@ -294,6 +294,9 @@ if test "x$IEEE" != x ; then command="$command -ieee" fi + if test "x$MPI" = xt ; then + command="$command -mpi" + fi printf 'genmake ... ' 1>&2 $command > make.log 2>&1 RETVAL=$? @@ -529,7 +532,7 @@ abave = 0.5*(fabs(a)+fabs(b)); if (abave > 0.0) { relerr=fabs(a-b)/abave; - if (relerr > 0.0) { linnum = (int)lrint(log10(relerr)); } + if (relerr > 0.0) { linnum = (int)rint(log10(relerr)); } else { linnum = -16 ; } best = (best > linnum) ? best : linnum; } @@ -1072,11 +1075,11 @@ rm -f tmp_cmpnum.c tmp_cmpnum if test "x$CLEANUP" != xt ; then - cat $SUMMARY + cat $SUMMARY | sed 's/ -- -- -- --//g' if test -e tr_out.txt ; then mv tr_out.txt tr_out.txt.old fi - cat $SUMMARY > tr_out.txt + cat $SUMMARY | sed 's/ -- -- -- --//g' > tr_out.txt fi if test "x$DELDIR" = xt ; then