From 3c8cafa058889929160d7019304b99fab0656df8 Mon Sep 17 00:00:00 2001 From: schnetter <> Date: Mon, 23 Apr 2001 06:10:00 +0000 Subject: Modified the Carpet driver so that it uses the same new timelevel Modified the Carpet driver so that it uses the same new timelevel cycling as does PUGH. Modified the CarpetIOASCII and CarpetIOFlexIO output routines so that they always output the current time level. Found and fixed a bug in the time interpolation in CarpetLib. Fixed a bug where the necessary number of ghost zones for space interpolation was calculated incorrectly. Fixed bugs in the example parameter files that used an insufficient number of ghost zones. darcs-hash:20010423061011-07bb3-c69e59f7bc5f283d7632a663c0770578cdb73881.gz --- CarpetAttic/Cart3dTest/utils/cmptest | 17 +++++------------ CarpetAttic/Cart3dTest/utils/mptest | 32 +++++++++++++------------------- 2 files changed, 18 insertions(+), 31 deletions(-) (limited to 'CarpetAttic/Cart3dTest') diff --git a/CarpetAttic/Cart3dTest/utils/cmptest b/CarpetAttic/Cart3dTest/utils/cmptest index ce99c6034..2aa730762 100755 --- a/CarpetAttic/Cart3dTest/utils/cmptest +++ b/CarpetAttic/Cart3dTest/utils/cmptest @@ -1,5 +1,5 @@ #!/bin/bash -# $Header: /home/eschnett/C/carpet/Carpet/CarpetAttic/Cart3dTest/utils/cmptest,v 1.3 2001/03/17 16:27:02 eschnett Exp $ +# $Header: /home/eschnett/C/carpet/Carpet/CarpetAttic/Cart3dTest/utils/cmptest,v 1.4 2001/04/23 08:10:17 schnetter Exp $ # Call this script from the Cactus directory. It compares a Carpet # ASCII testsuite output to PUGH ASCII testsuite output. @@ -11,17 +11,10 @@ for suite in $(ls TEST/carpet | grep -v log\$); do for file in $(ls arrangements/AlphaThorns/Cart3dTest/test/$suite | grep -v CVS | grep -v \.dl); do - mkfifo /tmp/out-old.$$ - mkfifo /tmp/out-new.$$ - - awk 'NF==2 { print $2; }' arrangements/AlphaThorns/Cart3dTest/test/$suite/$file > /tmp/out-old.$$ & - awk 'NF==9 { print $9; }' TEST/carpet/$suite/$file > /tmp/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 /tmp/out-old.$$ - rm /tmp/out-new.$$ + paste \ + <( awk 'NF==2 { print $2; }' arrangements/AlphaThorns/Cart3dTest/test/$suite/$file ) \ + <( awk 'NF==9 { print $9; }' TEST/carpet/$suite/$file ) \ + | 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"; }' done diff --git a/CarpetAttic/Cart3dTest/utils/mptest b/CarpetAttic/Cart3dTest/utils/mptest index c066f40a8..054992be9 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.3 2001/03/17 16:27:02 eschnett Exp $ +# $Header: /home/eschnett/C/carpet/Carpet/CarpetAttic/Cart3dTest/utils/mptest,v 1.4 2001/04/23 08:10:17 schnetter Exp $ # Call this script from the Cactus directory. It compares a Carpet # ASCII testsuite outputs from runs with different numbers of @@ -12,24 +12,18 @@ 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 /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; }' > /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; }' > /tmp/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 /tmp/out-old.$$ - rm /tmp/out-new.$$ + paste \ + <( awk 'NF==9 { print $1,$6,$7,$8,$9; }' arrangements/Carpet/Cart3dTest/test/$suite/$file | + sort -n -k 1,4 | + uniq | + awk '{ print $5; }' + ) \ + <( awk 'NF==9 { print $1,$6,$7,$8,$9; }' TEST/carpet/$suite/$file | + sort -n -k 1,4 | + uniq | + awk '{ print $5; }' + ) \ + | 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"; }' done -- cgit v1.2.3