--- MITgcm/verification/testreport 2003/11/03 14:32:05 1.13 +++ MITgcm/verification/testreport 2003/11/25 17:22:47 1.19 @@ -1,6 +1,6 @@ -#!/bin/bash +#! /usr/bin/env bash # -# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/verification/testreport,v 1.13 2003/11/03 14:32:05 edhill Exp $ +# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/verification/testreport,v 1.19 2003/11/25 17:22:47 edhill Exp $ # $Name: $ # @@ -81,7 +81,7 @@ echo testoutput_for_prop: grep "$2" $1/$4/output.txt 1>&2 fi if [ -r $1/$4/output.txt ]; then - grep "$2" $1/$4/output.txt | sed 's/.*=//' | nl > tmp1.txt + grep "$2" $1/$4/output.txt | sed 's/.*=//' | cat -n > tmp1.txt lncnt=`wc -l tmp1.txt | awk '{print $1}' ` if [ $lncnt -lt 3 ]; then if [ $verbose -gt 0 ]; then @@ -96,7 +96,7 @@ if [ $debug -gt 0 ]; then echo testoutput_for_prop: grep "$2" $1/results/output.txt 1>&2 fi - grep "$2" $1/results/output.txt | sed 's/.*=//' | nl > tmp2.txt + grep "$2" $1/results/output.txt | sed 's/.*=//' | cat -n > tmp2.txt lncnt=`wc -l tmp2.txt | awk '{print $1}' ` if [ $lncnt -lt 3 ]; then if [ $verbose -gt 0 ]; then @@ -516,7 +516,7 @@ -nodepend | --nodepend | -nd | --nd) NODEPEND=t ;; - -mpi) MPI=true ;; + -mpi) MPI=t ;; -ieee) IEEE=true ;; -noieee) IEEE= ;; @@ -580,8 +580,8 @@ fi SUMMARY="$DRESULTS/summary.txt" echo -n "Start time: " >> $SUMMARY -date > $SUMMARY -date > dfile +start_date=`date` +echo $start_date > $SUMMARY cat << EOF >> $SUMMARY T S U V G D M c m s m s m s m s @@ -749,13 +749,17 @@ done echo -n "Start time: " >> $SUMMARY -date -r dfile >> $SUMMARY +echo $start_date >> $SUMMARY echo -n "End time: " >> $SUMMARY date >> $SUMMARY -rm tmp_cmpnum.f a.out dfile +rm tmp_cmpnum.f a.out if test "x$CLEANUP" != xt ; then cat $SUMMARY + if test -e tr.out ; then + mv tr.out tr.out.old + fi + cat $SUMMARY > tr.out fi