aboutsummaryrefslogtreecommitdiff
path: root/src/ioHDF5UtilGH.h
diff options
context:
space:
mode:
authorschnetter <schnetter@7842ec3a-9562-4be5-9c5b-06ba18f2b668>2003-10-13 18:07:50 +0000
committerschnetter <schnetter@7842ec3a-9562-4be5-9c5b-06ba18f2b668>2003-10-13 18:07:50 +0000
commit427b0bc65e861a34b718c1ca5786fbd4f7a84d14 (patch)
tree42a8b9bfa8b68668713cd29874e733d02471ee9e /src/ioHDF5UtilGH.h
parent0aac6544f29d09ada62bc67e365d4fbb59f140e1 (diff)
Introduce the new Cactus variable type CCTK_INT1.
Extend routines to handle the new type. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOHDF5Util/trunk@97 7842ec3a-9562-4be5-9c5b-06ba18f2b668
Diffstat (limited to 'src/ioHDF5UtilGH.h')
-rw-r--r--src/ioHDF5UtilGH.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ioHDF5UtilGH.h b/src/ioHDF5UtilGH.h
index 50f4fdf..45e4ea7 100644
--- a/src/ioHDF5UtilGH.h
+++ b/src/ioHDF5UtilGH.h
@@ -164,12 +164,18 @@
H5T_NATIVE_SHORT : -1)
#endif
+#ifdef CCTK_INT1
+#define HDF5_INT1 H5T_NATIVE_CHAR
+#endif
+
#ifdef CCTK_INTEGER_PRECISION_8
#define HDF5_INT HDF5_INT8
#elif CCTK_INTEGER_PRECISION_4
#define HDF5_INT HDF5_INT4
#elif CCTK_INTEGER_PRECISION_2
#define HDF5_INT HDF5_INT2
+#elif CCTK_INTEGER_PRECISION_1
+#define HDF5_INT HDF5_INT1
#endif