diff options
author | Neil Fortner <nfortne2@hdfgroup.org> | 2016-11-29 22:33:45 (GMT) |
---|---|---|
committer | Neil Fortner <nfortne2@hdfgroup.org> | 2016-11-29 22:33:45 (GMT) |
commit | 46cfbdf4d5b0be60cd69e416e6673ca7a8643148 (patch) | |
tree | bd42c683d0b2ac1814dbc46660022eeef40de263 /examples/h5dsm_example.h | |
parent | 9d0edcfd4124f115ccfc729352b195081d04ce31 (diff) | |
download | hdf5-46cfbdf4d5b0be60cd69e416e6673ca7a8643148.zip hdf5-46cfbdf4d5b0be60cd69e416e6673ca7a8643148.tar.gz hdf5-46cfbdf4d5b0be60cd69e416e6673ca7a8643148.tar.bz2 |
Initial implementation of dataset reads and writes. Untested. Does not
support partial I/O or datatype conversions. Also added h5dsm examples.
Diffstat (limited to 'examples/h5dsm_example.h')
-rw-r--r-- | examples/h5dsm_example.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/h5dsm_example.h b/examples/h5dsm_example.h new file mode 100644 index 0000000..cbaff5a --- /dev/null +++ b/examples/h5dsm_example.h @@ -0,0 +1,13 @@ +#include <stdio.h> +#include <string.h> +#include <stdlib.h> +#include <mpi.h> +#include <hdf5.h> +#include <daos.h> + +/* Macros for printing standard messages and issuing errors */ +#define AT() printf (" at %s:%d in %s()...\n", __FILE__, __LINE__, __FUNCTION__) +#define FAILED() do {puts("*FAILED*");fflush(stdout);} while(0) +#define ERROR do {FAILED(); AT(); goto error;} while(0) +#define PRINTF_ERROR(...) do {FAILED(); AT(); printf(" " __VA_ARGS__); printf("\n"); goto error;} while(0) + |