Commit f1daa56c authored by gsell's avatar gsell

src/h5core/private/h5_model.c

- h5u_set_num_points(): set step to '0' if not already set
- h5u_set_chunk(): CHECK_TIMEGROUP(f) removed. The step must not be set before setting a chunk size
parent 2ea8245b
......@@ -122,6 +122,9 @@ h5u_set_num_points (
f, (long long unsigned)nparticles,
(long long unsigned)stride);
CHECK_FILEHANDLE (f);
if (f->step_gid < 0) {
TRY (h5_set_step (fh, 0));
}
CHECK_TIMEGROUP (f);
struct h5u_fdata *u = f->u;
hsize_t start;
......@@ -765,7 +768,6 @@ h5u_set_chunk (
"f=%p, size=%llu",
f, (long long unsigned)size);
CHECK_FILEHANDLE (f);
CHECK_TIMEGROUP (f);
if (size == 0) {
h5_info ("Disabling chunking" );
TRY (hdf5_set_layout_property (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment