diff options
author | lanfer <lanfer@0888f3d4-9f52-45d2-93bc-d00801ff5e46> | 2000-07-14 15:32:36 +0000 |
---|---|---|
committer | lanfer <lanfer@0888f3d4-9f52-45d2-93bc-d00801ff5e46> | 2000-07-14 15:32:36 +0000 |
commit | d97466b0aad75a8919e90680662e08538521c5ef (patch) | |
tree | 8fb32d13251fb571ea1603257db87864e891fd46 | |
parent | 49e235b39642d89572cedc75b269492de6306224 (diff) |
fix for new CoordRange syntax and deprecated CoordOrigin
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOStreamedHDF5/trunk@8 0888f3d4-9f52-45d2-93bc-d00801ff5e46
-rw-r--r-- | src/DumpVar.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/DumpVar.c b/src/DumpVar.c index 2cf03d0..eb04c26 100644 --- a/src/DumpVar.c +++ b/src/DumpVar.c @@ -214,7 +214,7 @@ static void StreamedHDF5_AddCommonAttributes (cGH *GH, int index, int timelevel, CCTK_REAL realAttr [6]; ioGH *ioUtilGH; StreamedHDF5GH *myGH; - + CCTK_REAL dummy; /* Get the handles for IOUtil and StreamedHDF5 extensions */ ioUtilGH = (ioGH *) GH->extensions [CCTK_GHExtensionHandle ("IO")]; @@ -241,15 +241,16 @@ static void StreamedHDF5_AddCommonAttributes (cGH *GH, int index, int timelevel, /* NOTE: the attributes "origin", "min_ext", "max_ext", and "delta" are always stored as 3-dimensional points */ - realAttr [0] = CCTK_CoordOrigin ("x"); - realAttr [1] = CCTK_CoordOrigin ("y"); - realAttr [2] = CCTK_CoordOrigin ("z"); + CCTK_CoordRange (GH, &realAttr [0], &dummy, -1, "x", "cart3d"); + CCTK_CoordRange (GH, &realAttr [1], &dummy, -1, "y", "cart3d"); + CCTK_CoordRange (GH, &realAttr [2], &dummy, -1, "z", "cart3d"); + WRITE_ATTRIBUTE ("origin", realAttr, dataset, myGH->arrayDataspace, 3, IOHDF5_REAL); - CCTK_CoordRange (GH, &realAttr [0], &realAttr [3], "x"); - CCTK_CoordRange (GH, &realAttr [1], &realAttr [4], "y"); - CCTK_CoordRange (GH, &realAttr [2], &realAttr [5], "z"); + CCTK_CoordRange (GH, &realAttr [0], &realAttr [3], -1, "x","cart3d"); + CCTK_CoordRange (GH, &realAttr [1], &realAttr [4], -1, "y","cart3d"); + CCTK_CoordRange (GH, &realAttr [2], &realAttr [5], -1, "z","cart3d"); WRITE_ATTRIBUTE ("min_ext", realAttr, dataset, myGH->arrayDataspace, 3, IOHDF5_REAL); WRITE_ATTRIBUTE ("max_ext", realAttr + 3, dataset, myGH->arrayDataspace, 3, |