diff --git a/src/h5core/h5t_model.c b/src/h5core/h5t_model.c index 62598c3..5f47c5b 100644 --- a/src/h5core/h5t_model.c +++ b/src/h5core/h5t_model.c @@ -385,7 +385,7 @@ h5t_close_mesh ( H5_ERR_H5FED, "Mesh cannot be closed: Mesh is referenced by open tagsets")); - if (!(m->f->props->mode & H5_O_RDONLY)) { + if (!(m->f->props->flags & H5_O_RDONLY)) { TRY (h5tpriv_write_mesh (m)); } TRY (hdf5_close_group (m->mesh_gid));