aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetIOHDF5
diff options
context:
space:
mode:
authorRoland Haas <roland.haas@physics.gatech.edu>2012-02-22 08:01:00 -0800
committerBarry Wardell <barry.wardell@gmail.com>2012-09-11 18:23:03 +0100
commit181db01dd6579975d5b6d9a56a5ad4792012f1dd (patch)
tree58eeb83d52fce09386eab3f8386a606da14c6ee1 /Carpet/CarpetIOHDF5
parentc81c943528090ac29f68a9bcceed9837795f9a43 (diff)
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(-)
Diffstat (limited to 'Carpet/CarpetIOHDF5')
-rw-r--r--Carpet/CarpetIOHDF5/src/util/hdf5toascii_slicer.cc6
1 files changed, 3 insertions, 3 deletions
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] << " "