aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2012-03-23 16:30:18 +0100
committerThomas White <taw@physics.org>2012-03-27 16:48:05 +0200
commit29eefe720ddf7d760e9c18d2320324b9996f8b26 (patch)
tree2af2eeabc7afbf2482bb90ffef30881cb6f60c17
parentf70f958a790cbcd291d3586118e5e5bd19b04b7e (diff)
Remove unnecessary max_size
-rw-r--r--libcrystfel/src/hdf5-file.c7
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);