From f1daa56cb81259353cbf280f1624cc45620bc41c Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Thu, 28 Jul 2016 15:57:34 +0200 Subject: [PATCH] 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 --- src/h5core/h5u_model.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/h5core/h5u_model.c b/src/h5core/h5u_model.c index cda85c2..61fb9ff 100644 --- a/src/h5core/h5u_model.c +++ b/src/h5core/h5u_model.c @@ -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 (