From c91d92d866cf15a933cc25d8c1d90216f195d91c Mon Sep 17 00:00:00 2001 From: cott Date: Mon, 16 Jan 2006 21:14:00 +0000 Subject: Fixed 0D output that I broke with my previous patch darcs-hash:20060116211408-34d71-98dfb18c053258e59d0544cd4ed758509f951049.gz --- Carpet/CarpetIOASCII/src/ioascii.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Carpet') diff --git a/Carpet/CarpetIOASCII/src/ioascii.cc b/Carpet/CarpetIOASCII/src/ioascii.cc index 3d41dbf9d..e080e8c55 100644 --- a/Carpet/CarpetIOASCII/src/ioascii.cc +++ b/Carpet/CarpetIOASCII/src/ioascii.cc @@ -1196,8 +1196,12 @@ namespace CarpetIOASCII { } os << endl; } - - if(dirs[0] < 3) { // not outputting the diagonal + + // boolean that says if we are doing 1D-diagonal output + // This is not beautiful, but works for the moment + bool const diagonal_output = outdim == 1 and dirs[0] == 3; + + if(not diagonal_output) { // not outputting the diagonal const vect lo = gfext.lower()[dirs]; const vect up = gfext.upper()[dirs]; -- cgit v1.2.3