diff --git a/.gitattributes b/.gitattributes index 4f7adb9..b561b67 100644 --- a/.gitattributes +++ b/.gitattributes @@ -350,6 +350,8 @@ src/H5Block.h -text src/H5Fed.c -text src/H5Fed.h -text src/H5Fed_adjacency.c -text +src/H5Fed_boundaries.c -text +src/H5Fed_boundaries.h -text src/H5Fed_dof.c -text src/H5Fed_inquiry.c -text src/H5Fed_map.c -text diff --git a/src/H5Fed_boundaries.c b/src/H5Fed_boundaries.c new file mode 100644 index 0000000..49c9dbf --- /dev/null +++ b/src/H5Fed_boundaries.c @@ -0,0 +1,101 @@ +/* + Copyright 2007-2008 + Paul Scherrer Institut, Villigen, Switzerland; + Benedikt Oswald; + Achim Gsell + All rights reserved. + + Authors + Achim Gsell + + Warning + This code is under development. + + */ + +#include +#include +#include "h5_core/h5_core.h" +#include "h5_core/h5_core_private.h" +#include "H5Fed.h" + +h5_err_t +H5FedAddBoundary ( + h5_file * const f + ) { + SET_FNAME ( __func__ ); + return h5t_open_boundary ( f, -1 ); +} + +h5_err_t +H5FedOpenBoundary ( + h5_file * const f, + const h5_id_t boundary_id + ) { + SET_FNAME ( __func__ ); + return h5t_open_boundary ( f, boundary_id ); +} + +h5_err_t +H5FedCloseBoundary ( + h5_file * const f + ) { + SET_FNAME ( __func__ ); + return h5t_close_boundary ( f ); +} + +h5_err_t +H5FedAddNumBoundaryfaces ( + h5_file * const f, + const h5_id_t num_boundaryfaces + ) { + SET_FNAME ( __func__ ); + return h5t_add_num_boundaryfaces ( f, num_boundaryfaces ); +} + +h5_err_t +H5FedStoreBoundaryface ( + h5_file *f, + h5_id_t *global_vids + ) { + SET_FNAME ( __func__ ); + return h5t_store_boundaryface ( f, global_vids ); +} + +h5_err_t +H5FedStoreBoundaryfaceGlobalID ( + h5_file *f, + h5_id_t global_fid + ) { + SET_FNAME ( __func__ ); + return h5t_store_boundaryface_global_id ( f, global_fid ); +} + +h5_err_t +H5FedStoreBoundaryfaceLocalID ( + h5_file *f, + h5_id_t local_fid + ) { + SET_FNAME ( __func__ ); + return h5t_store_boundaryface_local_id ( f, local_fid ); +} + +h5_err_t +H5FedStartTraverseBoundaryfaces ( + h5_file * const f + ) { + SET_FNAME ( __func__ ); + return h5t_start_traverse_boundary_faces( f ); +} + +h5_id_t +H5FedTraverseBoundaryfaces ( + h5_file * const f, + h5_id_t * const id, /*!< OUT: global face id */ + h5_id_t * const parent_id, /*!< OUT: parent id if level + \c >0 else \c -1 */ + h5_id_t vertex_ids[3] /*!< OUT: vertex id's */ + ) { + SET_FNAME ( __func__ ); + return h5t_traverse_boundary_faces( f, id, parent_id, vertex_ids ); +} diff --git a/src/H5Fed_boundaries.h b/src/H5Fed_boundaries.h new file mode 100644 index 0000000..ea1e577 --- /dev/null +++ b/src/H5Fed_boundaries.h @@ -0,0 +1,58 @@ +#ifndef __H5FED_BOUNDARIES_H +#define __H5FED_BOUNDARIES_H + +h5_err_t +H5FedAddBoundary ( + h5_file * const f + ); + + +h5_err_t +H5FedOpenBoundary ( + h5_file * const f, + const h5_id_t boundary_id + ); + +h5_err_t +H5FedCloseBoundary ( + h5_file *f + ); + +h5_err_t +H5FedAddNumBoundaryfaces ( + h5_file * const f, + const h5_id_t num_boundaryfaces + ); + +h5_err_t +H5FedStoreBoundaryface ( + h5_file *f, + h5_id_t *global_vids + ); + +h5_err_t +H5FedStoreBoundaryfaceGlobalID ( + h5_file *f, + h5_id_t global_fid + ); + +h5_err_t +H5FedStoreBoundaryfaceLocalID ( + h5_file *f, + h5_id_t local_fid + ); + +h5_err_t +H5FedStartTraverseBoundaryfaces ( + h5_file * const f + ); + +h5_id_t +H5FedTraverseBoundaryfaces ( + h5_file * const f, + h5_id_t * const id, + h5_id_t * const parent_id, + h5_id_t vertex_ids[3] + ); + +#endif