Skip to content
Snippets Groups Projects

Make sure the HDF5 dataset chunks are smaller than the dataset itself.

Merged Matthieu Schaller requested to merge io_chunck_bug into master
+ 6
0
Compare changes
  • Side-by-side
  • Inline
Files
+ 3
0
@@ -201,6 +201,9 @@ void prepareArray(hid_t grp, char* fileName, FILE* xmfFile, char* name,
chunk_shape[1] = 0;
}
/* Make sure the chunks are not larger than the dataset */
if (chunk_shape[0] > N_total) chunk_shape[0] = N_total;
/* Change shape of data space */
h_err = H5Sset_extent_simple(h_space, rank, shape, NULL);
if (h_err < 0) {
Loading