diff --git a/src/C/H5Fed.c b/src/C/H5Fed.c index cd0479e..4e0c1a1 100644 --- a/src/C/H5Fed.c +++ b/src/C/H5Fed.c @@ -32,7 +32,7 @@ h5_err_t H5FedCloseMesh ( h5_file_t * const f ) { - return h5_error_not_implemented ( f, __FILE__, __func__, __LINE__ ); + return h5t_close_mesh (f); } h5_err_t diff --git a/src/h5core/h5t_core_private.h b/src/h5core/h5t_core_private.h index 1a133f5..9ed749e 100644 --- a/src/h5core/h5t_core_private.h +++ b/src/h5core/h5t_core_private.h @@ -3,6 +3,7 @@ #define H5T_CONTAINER_GRPNAME "Topo" +#include "h5t_openclose_private.h" #include "h5t_tetm_adjacencies_private.h" #include "h5t_tetm_retrieve_private.h" #include "h5t_tetm_store_private.h" diff --git a/src/h5core/h5t_openclose.c b/src/h5core/h5t_openclose.c index 74be566..51480d5 100644 --- a/src/h5core/h5t_openclose.c +++ b/src/h5core/h5t_openclose.c @@ -372,7 +372,7 @@ h5_err_t h5tpriv_close_file ( h5_file_t *f /*!< IN: file handle */ ) { - TRY ( h5tpriv_close_mesh ( f ) ); + TRY ( h5t_close_mesh ( f ) ); return H5_SUCCESS; } @@ -453,7 +453,7 @@ h5t_open_mesh ( ) { h5t_fdata_t *t = f->t; - TRY( h5tpriv_close_mesh ( f ) ); + TRY( h5t_close_mesh ( f ) ); if ( t->num_meshes < 0 ) { h5_size_t result = h5t_get_num_meshes ( f, type ); @@ -542,7 +542,7 @@ _release_memory ( } h5_err_t -h5tpriv_close_mesh ( +h5t_close_mesh ( h5_file_t * const f ) { TRY( h5tpriv_write_mesh ( f ) ); diff --git a/src/include/h5core/h5t_openclose.h b/src/include/h5core/h5t_openclose.h index 212bf53..cd4498e 100644 --- a/src/include/h5core/h5t_openclose.h +++ b/src/include/h5core/h5t_openclose.h @@ -5,13 +5,13 @@ h5_err_t h5t_open_mesh ( h5_file_t * const f, const h5_id_t id, const h5_oid_t type ); h5_err_t h5t_open_level ( h5_file_t * const f, const h5_id_t id ); +h5_err_t h5t_close_mesh ( h5_file_t * const f ); h5_err_t h5tpriv_open_file ( h5_file_t * const f ); h5_err_t h5tpriv_close_file ( h5_file_t * const f ); h5_err_t h5tpriv_open_topo_group ( h5_file_t * const f ); h5_err_t h5tpriv_open_meshes_group ( h5_file_t * const f ); h5_err_t h5tpriv_open_mesh_group ( h5_file_t * const f ); -h5_err_t h5tpriv_close_mesh ( h5_file_t * const f ); h5_err_t h5tpriv_close_step ( h5_file_t * const f ); h5_err_t h5tpriv_init_fdata ( h5_file_t * const f );