diff options
Diffstat (limited to 'CarpetDev/CarpetIOF5/src/utils.hh')
-rw-r--r-- | CarpetDev/CarpetIOF5/src/utils.hh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/CarpetDev/CarpetIOF5/src/utils.hh b/CarpetDev/CarpetIOF5/src/utils.hh index c379cc775..ae7cb65a1 100644 --- a/CarpetDev/CarpetIOF5/src/utils.hh +++ b/CarpetDev/CarpetIOF5/src/utils.hh @@ -1,6 +1,24 @@ #ifndef UTILS_HH #define UTILS_HH +// force HDF5 1.8.x installations to use the new API +#ifdef H5Gopen_vers +#undef H5Gopen_vers +#endif +#ifdef H5Gcreate_vers +#undef H5Gcreate_vers +#endif +#ifdef H5Acreate_vers +#undef H5Acreate_vers +#endif +#ifdef H5Tarray_create_vers +#undef H5Tarray_create_vers +#endif +#define H5Gopen_vers 2 +#define H5Gcreate_vers 2 +#define H5Acreate_vers 2 +#define H5Tarray_create_vers 2 + #include <hdf5.h> #include "cctk.h" |