diff --git a/src/H5Fed_adjacency.c b/src/H5Fed_adjacency.c index 23e7f37..ce2efaf 100644 --- a/src/H5Fed_adjacency.c +++ b/src/H5Fed_adjacency.c @@ -29,6 +29,7 @@ H5FedGetEdgesUpAdjacentToVertex ( const h5_id_t local_vid, h5_idlist_t **list ) { + SET_FNAME ( f, __func__ ); return h5t_get_edges_upadjacent_to_vertex ( f, local_vid, list ); } @@ -38,6 +39,7 @@ H5FedGetTrianglesUpAdjacentToVertex ( const h5_id_t local_vid, h5_idlist_t **list ) { + SET_FNAME ( f, __func__ ); return h5t_get_triangles_upadjacent_to_vertex ( f, local_vid, list ); } @@ -47,13 +49,105 @@ H5FedGetTetsUpAdjacentToVertex ( const h5_id_t local_vid, h5_idlist_t **list ) { + SET_FNAME ( f, __func__ ); return h5t_get_tets_upadjacent_to_vertex ( f, local_vid, list ); } +h5_err_t +H5FedGetTrianglesUpAdjacentToEdge ( + h5_file_t * const f, + const h5_id_t local_kid, + h5_idlist_t **list + ) { + SET_FNAME ( f, __func__ ); + return h5t_get_triangles_upadjacent_to_edge ( f, local_kid, list ); +} + +h5_err_t +H5FedGetTetsUpAdjacentToEdge ( + h5_file_t * const f, + const h5_id_t local_kid, + h5_idlist_t **list + ) { + SET_FNAME ( f, __func__ ); + return h5t_get_tets_upadjacent_to_edge ( f, local_kid, list ); +} + +h5_err_t +H5FedGetTetsUpAdjacentToTriangle ( + h5_file_t * const f, + const h5_id_t local_did, + h5_idlist_t **list + ) { + SET_FNAME ( f, __func__ ); + return h5t_get_tets_upadjacent_to_triangle ( f, local_did, list ); +} + +h5_err_t +H5FedGetVerticesDownAdjacentToEdge ( + h5_file_t * const f, + const h5_id_t local_kid, + h5_idlist_t **list + ) { + SET_FNAME ( f, __func__ ); + return h5t_get_vertices_downadjacent_to_edge ( f, local_kid, list ); +} + +h5_err_t +H5FedGetVerticesDownAdjacentToTriangle ( + h5_file_t * const f, + const h5_id_t local_did, + h5_idlist_t **list + ) { + SET_FNAME ( f, __func__ ); + return h5t_get_vertices_downadjacent_to_triangle ( f, local_did, list ); +} + +h5_err_t +H5FedGetVerticesDownAdjacentToTet ( + h5_file_t * const f, + const h5_id_t local_tid, + h5_idlist_t **list + ) { + SET_FNAME ( f, __func__ ); + return h5t_get_vertices_downadjacent_to_tet ( f, local_tid, list ); +} + +h5_err_t +H5FedGetEdgesDownAdjacentToTriangle ( + h5_file_t * const f, + const h5_id_t local_did, + h5_idlist_t **list + ) { + SET_FNAME ( f, __func__ ); + return h5t_get_edges_downadjacent_to_triangle ( f, local_did, list ); +} + +h5_err_t +H5FedGetEdgesDownAdjacentToTet ( + h5_file_t * const f, + const h5_id_t local_tid, + h5_idlist_t **list + ) { + SET_FNAME ( f, __func__ ); + return h5t_get_edges_downadjacent_to_tet ( f, local_tid, list ); +} + +h5_err_t +H5FedGetTrianglesDownAdjacentToTet ( + h5_file_t * const f, + const h5_id_t local_tid, + h5_idlist_t **list + ) { + SET_FNAME ( f, __func__ ); + return h5t_get_triangles_downadjacent_to_tet ( f, local_tid, list ); +} + h5_err_t H5FedReleaseListOfAdjacencies ( h5_file_t * const f, h5_idlist_t **list ) { + SET_FNAME ( f, __func__ ); return _h5_free_idlist ( f, list ); } diff --git a/src/H5Fed_adjacency.h b/src/H5Fed_adjacency.h index d9bfeb3..c308917 100644 --- a/src/H5Fed_adjacency.h +++ b/src/H5Fed_adjacency.h @@ -22,6 +22,69 @@ H5FedGetTetsUpAdjacentToVertex ( h5_idlist_t **list ); +h5_err_t +H5FedGetTrianglesUpAdjacentToEdge ( + h5_file_t * const f, + const h5_id_t local_kid, + h5_idlist_t **list + ); + +h5_err_t +H5FedGetTetsUpAdjacentToEdge ( + h5_file_t * const f, + const h5_id_t local_kid, + h5_idlist_t **list + ); + +h5_err_t +H5FedGetTetsUpAdjacentToTriangle ( + h5_file_t * const f, + const h5_id_t local_did, + h5_idlist_t **list + ); + +h5_err_t +H5FedGetVerticesDownAdjacentToEdge ( + h5_file_t * const f, + const h5_id_t local_kid, + h5_idlist_t **list + ); + +h5_err_t +H5FedGetVerticesDownAdjacentToTriangle ( + h5_file_t * const f, + const h5_id_t local_did, + h5_idlist_t **list + ); + +h5_err_t +H5FedGetVerticesDownAdjacentToTet ( + h5_file_t * const f, + const h5_id_t local_tid, + h5_idlist_t **list + ); + +h5_err_t +H5FedGetEdgesDownAdjacentToTriangle ( + h5_file_t * const f, + const h5_id_t local_did, + h5_idlist_t **list + ); + +h5_err_t +H5FedGetEdgesDownAdjacentToTet ( + h5_file_t * const f, + const h5_id_t local_tid, + h5_idlist_t **list + ); + +h5_err_t +H5FedGetTrianglesDownAdjacentToTet ( + h5_file_t * const f, + const h5_id_t local_tid, + h5_idlist_t **list + ); + h5_err_t H5FedReleaseListOfAdjacencies ( h5_file_t * const f, diff --git a/src/H5Fed_retrieve.c b/src/H5Fed_retrieve.c index ae458fa..c23ac96 100644 --- a/src/H5Fed_retrieve.c +++ b/src/H5Fed_retrieve.c @@ -79,9 +79,34 @@ H5FedEndTraverseEdges ( return h5t_end_traverse_edges ( f ); } +h5_err_t +H5FedBeginTraverseTriangles ( + h5_file_t * const f + ) { + SET_FNAME ( f, __func__ ); + return h5t_begin_traverse_triangles ( f ); +} + +h5_id_t +H5FedTraverseTriangles ( + h5_file_t * const f, + h5_id_t * const local_vids + ) { + SET_FNAME ( f, __func__ ); + return h5t_traverse_triangles ( f, local_vids ); +} + +h5_err_t +H5FedEndTraverseTriangles ( + h5_file_t * const f + ) { + SET_FNAME ( f, __func__ ); + return h5t_end_traverse_triangles ( f ); +} + h5_err_t H5FedBeginTraverseElements ( - h5_file_t * const f /*!< file handle */ + h5_file_t * const f ) { SET_FNAME ( f, __func__ ); return h5t_begin_traverse_elems ( f ); diff --git a/src/H5Fed_retrieve.h b/src/H5Fed_retrieve.h index 0aac703..0e59cc2 100644 --- a/src/H5Fed_retrieve.h +++ b/src/H5Fed_retrieve.h @@ -48,6 +48,22 @@ H5FedEndTraverseEdges ( h5_file_t * const f ); +h5_err_t +H5FedBeginTraverseTriangles ( + h5_file_t * const f + ); + +h5_id_t +H5FedTraverseTriangles ( + h5_file_t * const f, + h5_id_t * const local_vids + ); + +h5_err_t +H5FedEndTraverseTriangles ( + h5_file_t * const f + ); + h5_err_t H5FedEndTraverseElements ( h5_file_t * const f