diff --git a/lib/ch5md/include/ch5md.h b/lib/ch5md/include/ch5md.h index 14ee4eb9de..fce2fc57b1 100644 --- a/lib/ch5md/include/ch5md.h +++ b/lib/ch5md/include/ch5md.h @@ -61,7 +61,7 @@ int h5md_close_time_data(h5md_element e); h5md_element h5md_create_fixed_data_simple(hid_t loc, const char *name, int rank, int int_dims[], hid_t datatype, void *data); h5md_element h5md_create_fixed_data_scalar(hid_t loc, const char *name, hid_t datatype, void *data); int h5md_append(h5md_element e, void *data, int step, double time); -int h5md_create_box(h5md_particles_group *group, int dim, char *boundary[], bool is_time, double value[]); +int h5md_create_box(h5md_particles_group *group, int dim, char *boundary[], bool is_time, double value[], h5md_element *link); #ifdef __cplusplus } diff --git a/lib/ch5md/src/ch5md.c b/lib/ch5md/src/ch5md.c index 516a18f471..0adab3075d 100644 --- a/lib/ch5md/src/ch5md.c +++ b/lib/ch5md/src/ch5md.c @@ -358,7 +358,7 @@ int h5md_append(h5md_element e, void *data, int step, double time) { return 0; } -int h5md_create_box(h5md_particles_group *group, int dim, char *boundary[], bool is_time, double value[]) +int h5md_create_box(h5md_particles_group *group, int dim, char *boundary[], bool is_time, double value[], h5md_element *link) { hid_t spc, att, t; hsize_t dims[1]; @@ -406,7 +406,7 @@ int h5md_create_box(h5md_particles_group *group, int dim, char *boundary[], bool // Check if the box is time-dependent or not int_dims[0]=dim; if (is_time) { - group->box_edges = h5md_create_time_data(group->box, "edges", 1, int_dims, H5T_NATIVE_DOUBLE, &group->position); + group->box_edges = h5md_create_time_data(group->box, "edges", 1, int_dims, H5T_NATIVE_DOUBLE, link); } else { if (NULL!=value) { group->box_edges = h5md_create_fixed_data_simple(group->box, "edges", 1, int_dims, H5T_NATIVE_DOUBLE, value);