diff options
author | Roland Haas <rhaas@caltech.edu> | 2012-06-17 16:26:08 -0700 |
---|---|---|
committer | Roland Haas <rhaas@caltech.edu> | 2012-06-17 16:26:08 -0700 |
commit | 554597ee6aa8e1fce2c2fe7de4141ab210b07a5f (patch) | |
tree | 077f472b033f1a17400960e501e37a8a79e9bd65 | |
parent | 9fd7f6124c1d4f8f7de0040db10dc8c33290536e (diff) |
CarpetIOHDF5: zero cctk_nghostzones attribute unless ghost zones are written
to disk
-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]]; |