--- MITgcm/verification/testreport 2005/08/16 17:12:46 1.71 +++ MITgcm/verification/testreport 2005/08/16 17:50:31 1.72 @@ -1,6 +1,6 @@ #! /usr/bin/env bash # -# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/verification/testreport,v 1.71 2005/08/16 17:12:46 jmc Exp $ +# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/verification/testreport,v 1.72 2005/08/16 17:50:31 edhill Exp $ # $Name: $ # @@ -125,9 +125,14 @@ fi return 99 fi - non_real_numb=`egrep -c -i 'NAN|INF' tmp1.txt` - if [ $non_real_numb -gt 0 ]; then - echo testoutput_for_prop: output.txt has $non_real_numb not real numbers 1>&2 + has_nan=`cat tmp1.txt | grep -i nan | wc -l` + if [ $has_nan -gt 0 ] ; then + echo testoutput_for_prop: output.txt contains $has_nan NaN values 1>&2 + return 99 + fi + has_inf=`cat tmp1.txt | grep -i inf | wc -l` + if [ $has_inf -gt 0 ] ; then + echo testoutput_for_prop: output.txt contains $has_inf Inf values 1>&2 return 99 fi if [ $debug -gt 0 ]; then