diff options
author | Thomas White <taw@physics.org> | 2012-03-23 16:30:18 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-03-23 16:30:18 +0100 |
commit | 1c47632400cebf04f1ef7a7e2480e414ce65ab46 (patch) | |
tree | 62e78050659f944979e965468ff78abad3fd45e8 /libcrystfel/src | |
parent | 685f23322f7a40102f80a41b8dba3a29c8a99ae4 (diff) |
Remove unnecessary max_size
Diffstat (limited to 'libcrystfel/src')
-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 206e6295..9b21c444 100644 --- a/libcrystfel/src/hdf5-file.c +++ b/libcrystfel/src/hdf5-file.c @@ -236,7 +236,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 ) { @@ -255,9 +254,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); @@ -273,7 +270,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); |