This commit is contained in:
2008-09-25 15:47:55 +00:00
parent b737d2cb14
commit cd7ffd24e4
3 changed files with 161 additions and 0 deletions
+2
View File
@@ -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
+101
View File
@@ -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 <stdarg.h>
#include <hdf5.h>
#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 );
}
+58
View File
@@ -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