From 4343abdb9311f0ed382ed0834f4f6c34c54090a1 Mon Sep 17 00:00:00 2001 From: Roland Haas Date: Sun, 17 Jun 2012 16:42:15 -0700 Subject: CarpetIOHDF5: re-add ghost and symmetry points when removing buffers NOTE: this assumes (like other parts of CarpetIOHDF5) that the number of symmetry points is the number of ghost points. NOTE: it likely outputs too many points when RotatingSymmetry is used and only buffer points touch the symmetry boundary. --- Carpet/CarpetIOHDF5/src/OutputSlice.cc | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'Carpet/CarpetIOHDF5') diff --git a/Carpet/CarpetIOHDF5/src/OutputSlice.cc b/Carpet/CarpetIOHDF5/src/OutputSlice.cc index 1dfa369f5..4f1620c0e 100644 --- a/Carpet/CarpetIOHDF5/src/OutputSlice.cc +++ b/Carpet/CarpetIOHDF5/src/OutputSlice.cc @@ -1068,7 +1068,32 @@ namespace CarpetIOHDF5 { ibset exts(ibbox(lo,hi,str)); // do grid arrays have buffer zones? if (not output_buffer_points) { - exts &= allactive; + ivect loghosts(0); + ivect highosts(0); + // possibly re-add ghost points and symmetry points + // TODO: come up with a nicer way to do this + for (int d=0; d