diff options
Diffstat (limited to 'CarpetAttic/Cart3dTest/utils/mptest')
-rwxr-xr-x | CarpetAttic/Cart3dTest/utils/mptest | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/CarpetAttic/Cart3dTest/utils/mptest b/CarpetAttic/Cart3dTest/utils/mptest index 69d34ff2c..c066f40a8 100755 --- a/CarpetAttic/Cart3dTest/utils/mptest +++ b/CarpetAttic/Cart3dTest/utils/mptest @@ -1,5 +1,5 @@ #!/bin/bash -# $Header: /home/eschnett/C/carpet/Carpet/CarpetAttic/Cart3dTest/utils/mptest,v 1.2 2001/03/17 16:19:38 eschnett Exp $ +# $Header: /home/eschnett/C/carpet/Carpet/CarpetAttic/Cart3dTest/utils/mptest,v 1.3 2001/03/17 16:27:02 eschnett Exp $ # Call this script from the Cactus directory. It compares a Carpet # ASCII testsuite outputs from runs with different numbers of @@ -12,24 +12,24 @@ for suite in $(ls TEST/carpet | grep -v log\$); do for file in $(ls arrangements/Carpet/Cart3dTest/test/$suite | grep -v CVS | grep -v \.dl); do - mkfifo out-old.$$ - mkfifo out-new.$$ + mkfifo /tmp/out-old.$$ + mkfifo /tmp/out-new.$$ awk 'NF==9 { print $1,$6,$7,$8,$9; }' arrangements/Carpet/Cart3dTest/test/$suite/$file | sort -n -k 1,4 | uniq | - awk '{ print $5; }' > out-old.$$ & + awk '{ print $5; }' > /tmp/out-old.$$ & awk 'NF==9 { print $1,$6,$7,$8,$9; }' TEST/carpet/$suite/$file | sort -n -k 1,4 | uniq | - awk '{ print $5; }' > out-new.$$ & + awk '{ print $5; }' > /tmp/out-new.$$ & - paste out-old.$$ out-new.$$ | + paste /tmp/out-old.$$ /tmp/out-new.$$ | awk '{ diff=(($1-$2)/($1+$2+1e-6))**2; if (diff>1e-10) { ++cnt; print l+0,$1,$2,diff; ++l; } } END { if (cnt>0) print "File '$file'",cnt+0,"differing lines"; }' - rm out-old.$$ - rm out-new.$$ + rm /tmp/out-old.$$ + rm /tmp/out-new.$$ done |