From 181db01dd6579975d5b6d9a56a5ad4792012f1dd Mon Sep 17 00:00:00 2001 From: Roland Haas Date: Wed, 22 Feb 2012 08:01:00 -0800 Subject: CarpetIOHDF5: hdf5toascii_slicer take patch.iorigin into account when computing coordinates of points this is the same issue (just seems from the other side of the output) as in "CarpetIOHDF5: Correct iorigin attribute for 2D output", namely that iorigin is stored in multiples of the stride for the given refinement level --- Carpet/CarpetIOHDF5/src/util/hdf5toascii_slicer.cc | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) --- Carpet/CarpetIOHDF5/src/util/hdf5toascii_slicer.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Carpet/CarpetIOHDF5') diff --git a/Carpet/CarpetIOHDF5/src/util/hdf5toascii_slicer.cc b/Carpet/CarpetIOHDF5/src/util/hdf5toascii_slicer.cc index 0c9d32885..e0735cbc7 100644 --- a/Carpet/CarpetIOHDF5/src/util/hdf5toascii_slicer.cc +++ b/Carpet/CarpetIOHDF5/src/util/hdf5toascii_slicer.cc @@ -522,9 +522,9 @@ static void ReadPatch (const patch_t& patch, int last_iteration) << patch.rflevel << " " << patch.component << " " << patch.mglevel << "\t" - << patch.iorigin[0] + i*(1 << (max_rflevel - patch.rflevel)) << " " - << patch.iorigin[1] + j*(1 << (max_rflevel - patch.rflevel)) << " " - << patch.iorigin[2] + k*(1 << (max_rflevel - patch.rflevel)) << "\t" + << (patch.iorigin[0] + i)*(1 << (max_rflevel - patch.rflevel)) << " " + << (patch.iorigin[1] + j)*(1 << (max_rflevel - patch.rflevel)) << " " + << (patch.iorigin[2] + k)*(1 << (max_rflevel - patch.rflevel)) << "\t" << setiosflags (ios_base::fixed) << patch.time << "\t" << patch.origin[0] + i*patch.delta[0] << " " -- cgit v1.2.3