diff options
author | Valerio Mariani <vmariani@it-hpc-cxi03.desy.de> | 2016-02-22 17:26:47 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2016-02-23 13:02:44 +0100 |
commit | f5db71ccfe6024294494e6eb256ca744ff30c235 (patch) | |
tree | bc8deb7838d5d97663c15f75d48266612a160540 /libcrystfel/src/hdf5-file.c | |
parent | 1a49c52e8cd18f9aa7733ebd1d30f76777661321 (diff) |
Fixed bug with memspace size in write_location
Diffstat (limited to 'libcrystfel/src/hdf5-file.c')
-rw-r--r-- | libcrystfel/src/hdf5-file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcrystfel/src/hdf5-file.c b/libcrystfel/src/hdf5-file.c index acb3b525..023b0f7d 100644 --- a/libcrystfel/src/hdf5-file.c +++ b/libcrystfel/src/hdf5-file.c @@ -810,8 +810,8 @@ static void write_location(hid_t fh, struct detector *det, float *data, m_count[0] = p.max_ss - p.min_ss +1; m_count[1] = p.max_fs - p.min_fs +1; - dimsm[0] = det->max_fs + 1; - dimsm[1] = det->max_ss + 1; + dimsm[0] = det->max_ss + 1; + dimsm[1] = det->max_fs + 1; memspace = H5Screate_simple(2, dimsm, NULL); r = H5Sselect_hyperslab(memspace, H5S_SELECT_SET, |