diff options
-rw-r--r-- | libcrystfel/src/hdf5-file.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libcrystfel/src/hdf5-file.c b/libcrystfel/src/hdf5-file.c index c1b38507..347bf8fc 100644 --- a/libcrystfel/src/hdf5-file.c +++ b/libcrystfel/src/hdf5-file.c @@ -234,7 +234,6 @@ int hdf5_write(const char *filename, const void *data, hid_t ph; /* Property list */ herr_t r; hsize_t size[2]; - hsize_t max_size[2]; fh = H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT); if ( fh < 0 ) { @@ -253,9 +252,7 @@ int hdf5_write(const char *filename, const void *data, * "C versus Fortran Dataspaces", of the HDF5 user's guide. */ size[0] = height; size[1] = width; - max_size[0] = height; - max_size[1] = width; - sh = H5Screate_simple(2, size, max_size); + sh = H5Screate_simple(2, size, NULL); /* Set compression */ ph = H5Pcreate(H5P_DATASET_CREATE); @@ -271,7 +268,7 @@ int hdf5_write(const char *filename, const void *data, } /* Muppet check */ - H5Sget_simple_extent_dims(sh, size, max_size); + H5Sget_simple_extent_dims(sh, size, NULL); r = H5Dwrite(dh, type, H5S_ALL, H5S_ALL, H5P_DEFAULT, data); |