Skip to content
Snippets Groups Projects
Commit 7db676d5 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Same for the serial_io version

parent ae75140e
Branches
Tags
2 merge requests!136Master,!110Make sure the HDF5 dataset chunks are smaller than the dataset itself.
......@@ -202,7 +202,7 @@ void prepareArray(hid_t grp, char* fileName, FILE* xmfFile, char* name,
}
/* Make sure the chunks are not larger than the dataset */
if (chunk_shape[0] > N) chunk_shape[0] = N;
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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment