dedicated function to add triangle and tetrahedral meshes added

This commit is contained in:
2011-05-13 11:04:57 +00:00
parent 532da439a6
commit 0dbb8f22e3
2 changed files with 32 additions and 0 deletions
+21
View File
@@ -17,6 +17,9 @@
#include "H5Fed.h"
/*
Depricated! Please use H5FedAddTetrahedralMesh() or H5FedAddTriangleMesh().
*/
h5_id_t
H5FedAddMesh (
h5_file_t* const f,
@@ -26,6 +29,24 @@ H5FedAddMesh (
H5_API_RETURN (h5t_add_mesh (f, mesh_type_id));
}
h5_id_t
H5FedAddTetrahedralMesh (
h5_file_t* const f
) {
const h5_oid_t mesh_type_id = H5_TETRAHEDRAL_MESH;
H5_API_ENTER2 (h5_id_t, "f=0x%p, mesh_type_id=%u", f, mesh_type_id);
H5_API_RETURN (h5t_add_mesh (f, mesh_type_id));
}
h5_id_t
H5FedAddTriangleMesh (
h5_file_t* const f
) {
const h5_oid_t mesh_type_id = H5_TRIANGLE_MESH;
H5_API_ENTER2 (h5_id_t, "f=0x%p, mesh_type_id=%u", f, mesh_type_id);
H5_API_RETURN (h5t_add_mesh (f, mesh_type_id));
}
/*!
\ingroup h5fed_c_api
+11
View File
@@ -23,12 +23,23 @@
extern "C" {
#endif
/* depricated! use explicit versions */
h5_id_t
H5FedAddMesh (
h5_file_t * const f,
const h5_oid_t mesh_type_id
);
h5_id_t
H5FedAddTetrahedralMesh (
h5_file_t * const f
);
h5_id_t
H5FedAddTriangleMesh (
h5_file_t * const f
);
h5t_lvl_idx_t
H5FedAddLevel (
h5_file_t * const f