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
This commit is contained in:
2016-07-28 15:57:34 +02:00
parent 2ea8245bba
commit f1daa56cb8
+3 -1
View File
@@ -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 (