diff options
author | cott <schnetter@cct.lsu.edu> | 2006-01-16 21:14:00 +0000 |
---|---|---|
committer | cott <schnetter@cct.lsu.edu> | 2006-01-16 21:14:00 +0000 |
commit | c91d92d866cf15a933cc25d8c1d90216f195d91c (patch) | |
tree | 79c21e6dc105b6ea1f10adc9dd350cb6379afc40 | |
parent | f5cd9b23bcd134dddff3b68c11c99f59fadfa481 (diff) |
Fixed 0D output that I broke with my previous patch
darcs-hash:20060116211408-34d71-98dfb18c053258e59d0544cd4ed758509f951049.gz
-rw-r--r-- | Carpet/CarpetIOASCII/src/ioascii.cc | 8 |
1 files changed, 6 insertions, 2 deletions
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<int,outdim> lo = gfext.lower()[dirs]; const vect<int,outdim> up = gfext.upper()[dirs]; |