diff options
author | Roland Haas <rhaas@caltech.edu> | 2012-06-17 16:26:08 -0700 |
---|---|---|
committer | Barry Wardell <barry.wardell@gmail.com> | 2012-09-11 18:23:25 +0100 |
commit | 9d75e2160464eb503b5b4b346b200061d647a6fb (patch) | |
tree | b5b40a2adfc8b31c6a24d2666b4e8c4a2f8ca9fd /Carpet/CarpetIOHDF5 | |
parent | 9e1aef72fb3e82ec80bb0757e5364cbd5818181f (diff) |
CarpetIOHDF5: zero cctk_nghostzones attribute unless ghost zones are written
to disk
Diffstat (limited to 'Carpet/CarpetIOHDF5')
-rw-r--r-- | Carpet/CarpetIOHDF5/src/OutputSlice.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Carpet/CarpetIOHDF5/src/OutputSlice.cc b/Carpet/CarpetIOHDF5/src/OutputSlice.cc index a74c865bb..1dfa369f5 100644 --- a/Carpet/CarpetIOHDF5/src/OutputSlice.cc +++ b/Carpet/CarpetIOHDF5/src/OutputSlice.cc @@ -1404,7 +1404,7 @@ namespace CarpetIOHDF5 { const b2vect obnds = vhh.at(m)->outer_boundaries(rl,c); const i2vect ghost_width = arrdata.at(gi).at(m).dd->ghost_widths.AT(rl); for (int d = 0; d < outdim; d++) { - nghostzones[d] = ghost_width[0][dirs[d]]; + nghostzones[d] = output_ghost_points ? ghost_width[0][dirs[d]] : 0; assert (all (ghost_width[0] == ghost_width[1])); bbox[2*d] = obnds[0][dirs[d]]; |