diff options
author | Thomas Radke <tradke@aei.mpg.de> | 2005-05-12 10:17:00 +0000 |
---|---|---|
committer | Thomas Radke <tradke@aei.mpg.de> | 2005-05-12 10:17:00 +0000 |
commit | e9c884aff981ff8b3b2708959f04c7f465f06636 (patch) | |
tree | 3bb93f3f75f7fc3614b83a8ff09e4014bb819e79 /Carpet/CarpetIOHDF5 | |
parent | ae32368f215d98ebc2b5cd145bd59f3c184954f8 (diff) |
CarpetIOHDF5: API for H5Sselect_hyperslab() has changed in HDF5 1.6.4
The second argument to H5Sselect_hyperslab must be a 'const hsize_t start[]' in the latest release 1.6.4.
It used to be 'const hssize_t start[]' in all previous releases.
darcs-hash:20050512101740-776a0-3581a3be23f057105585cf57b384a166f30aec29.gz
Diffstat (limited to 'Carpet/CarpetIOHDF5')
-rw-r--r-- | Carpet/CarpetIOHDF5/src/Output.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Carpet/CarpetIOHDF5/src/Output.cc b/Carpet/CarpetIOHDF5/src/Output.cc index f57c718cd..7c01ed35d 100644 --- a/Carpet/CarpetIOHDF5/src/Output.cc +++ b/Carpet/CarpetIOHDF5/src/Output.cc @@ -595,7 +595,11 @@ int WriteVarUnchunked (const cGH* const cctkGH, else { hsize_t overlapshape[dim]; +#if (H5_VERS_MAJOR == 1 && H5_VERS_MINOR == 6 && H5_VERS_RELEASE == 4) + hsize_t overlaporigin[dim]; +#else hssize_t overlaporigin[dim]; +#endif for (int d = 0; d < group.dim; ++d) { overlaporigin[group.dim-1-d] = |