diff --git a/src/bindings/C++/H5Fed.cc b/src/bindings/C++/H5Fed.cc index dcf9a45..76c5b2e 100644 --- a/src/bindings/C++/H5Fed.cc +++ b/src/bindings/C++/H5Fed.cc @@ -44,6 +44,7 @@ //} + /** activate namespaces */ using namespace std; @@ -140,12 +141,53 @@ H5FED_RETURN_CODE H5Fed::closeFile() return(OKCODE); } + + + +/****** STORE routines*****************************************************/ + +/*! + \ingroup h5fed_c_api + + Stores the the coordinates of a specific vertex at level \c level + with id \c vertex_id of the tetrahedral mesh. + + \return value \c >=0 on success + \return \c -1 on error +*/ +H5FED_RETURN_CODE H5Fed::storeVertexCoordinate( + unsigned int level, /*!< mesh level */ + unsigned int vertex_id, /*!< global vertex id */ + std::vector /*!< 3-tuple of coordinates */ +) +{ + ; } +/*! + \ingroup h5fed_c_api + + Stores the 4-tuple, that contains the specific indices describing + a tetrahedron with id \c tet_id at level \c level of the tetrahedral + mesh. + + \return value \c >=0 on success + \return \c -1 on error +*/ +H5FED_RETURN_CODE H5Fed::H5FedStoreTetrahedron ( + const unsigned int level, /*!< mesh level */ + const unsigned int tet_id, /*!< global tetrahedron id */ + const unsigned int parent_id, /*!< parent id if level \c >0 else \x -1 */ + const std::vector tet /*!< 4-tuple with vertex id's */ + ) +{ + return(OKCODE); +} +} diff --git a/src/bindings/C++/H5Fed.hh b/src/bindings/C++/H5Fed.hh index 1f09730..c4ca838 100644 --- a/src/bindings/C++/H5Fed.hh +++ b/src/bindings/C++/H5Fed.hh @@ -42,6 +42,9 @@ #include #include +/** include fundamental HDF5 header files */ +#include + #ifndef H5FED_HH #define H5FED_HH @@ -49,7 +52,7 @@ namespace H5Fed { /** \brief Define return codes */ - enum H5FED_RETURN_CODE{OKCODE,ERROR}; + enum H5FED_RETURN_CODE{OKCODE=0,ERROR=-1}; @@ -72,7 +75,78 @@ namespace H5Fed /****** INQUIRY routines *****************************************************/ + + + + + + /****** STORE routines*****************************************************/ + + /*! + \ingroup h5fed_c_api + Stores the the coordinates of a specific vertex at level \c level + with id \c vertex_id of the tetrahedral mesh. + + \return value \c >=0 on success + \return \c -1 on error + */ + H5FED_RETURN_CODE storeVertexCoordinate( + unsigned int level, /*!< mesh level */ + unsigned int vertex_id, /*!< global vertex id */ + std::vector /*!< 3-tuple of coordinates */ + ); + + + + + /*! + \ingroup h5fed_c_api + + Stores the 4-tuple, that contains the specific indices describing + a tetrahedron with id \c tet_id at level \c level of the tetrahedral + mesh. + + \return value \c >=0 on success + \return \c -1 on error + */ + H5FED_RETURN_CODE H5FedStoreTetrahedron ( + const unsigned int level, /*!< mesh level */ + const unsigned int tet_id, /*!< global tetrahedron id */ + const unsigned int parent_id, /*!< parent id if level \c >0 else \x -1 */ + const std::vector tet /*!< 4-tuple with vertex id's */ + ); + + + + + + + + + /****** UPWARD ADJACENCY routines *********************************************/ + + + + + /****** DOWNWARD ADJACENCY routines *********************************************/ + + + + + + + /****** routines for accessing degrees of freedom DoF *************************/ + + + + + + + + + + protected: