From 4f37dbe55abeb7196fe94eb483c9e691a0ec8f24 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Wed, 20 Aug 2008 14:30:31 +0000 Subject: [PATCH] added --- .gitattributes | 2 ++ src/H5Fed_map.c | 43 +++++++++++++++++++++++++++++++++++++++++++ src/H5Fed_map.h | 29 +++++++++++++++++++++++++++++ 3 files changed, 74 insertions(+) create mode 100644 src/H5Fed_map.c create mode 100644 src/H5Fed_map.h diff --git a/.gitattributes b/.gitattributes index 077261f..694e4b9 100644 --- a/.gitattributes +++ b/.gitattributes @@ -357,6 +357,8 @@ src/H5Fed.h -text src/H5Fed_adjacency.c -text src/H5Fed_dof.c -text src/H5Fed_inquiry.c -text +src/H5Fed_map.c -text +src/H5Fed_map.h -text src/H5Fed_retrieve.c -text src/H5Fed_store.c -text src/H5Part.c -text diff --git a/src/H5Fed_map.c b/src/H5Fed_map.c new file mode 100644 index 0000000..efdd870 --- /dev/null +++ b/src/H5Fed_map.c @@ -0,0 +1,43 @@ +/* + Copyright 2007-2008 + Paul Scherrer Institut, Villigen, Switzerland; + Benedikt Oswald; + Achim Gsell + All rights reserved. + + Authors + Achim Gsell + + Warning + This code is under development. + + */ +/*! + \ingroup h5fed_c_api + \defgroup h5fed_map +*/ + +#include +#include +#include "h5/h5_core.h" +#include "h5/h5_private.h" +#include "H5Fed.h" + +h5_id_t +H5FedMapTet2GlobalID ( + h5_file *f, + h5_id_t * const global_vids + ) { + SET_FNAME ( __func__ ); + return h5t_get_global_entity_id ( f, global_vids ); +} + + +h5_id_t +H5FedMapTriangle2GlobalID ( + h5_file *f, + h5_id_t * const global_vids + ) { + SET_FNAME ( __func__ ); + return h5t_get_global_triangle_id ( f, global_vids ); +} diff --git a/src/H5Fed_map.h b/src/H5Fed_map.h new file mode 100644 index 0000000..5d673c8 --- /dev/null +++ b/src/H5Fed_map.h @@ -0,0 +1,29 @@ +/* + Header file for declaring the H5Fed application programming + interface (API) in the C language. + + Copyright 2006-2007 + Paul Scherrer Institut, Villigen, Switzerland; + Benedikt Oswald; + Achim Gsell + All rights reserved. + + Authors + Achim Gsell + + Warning + This code is under development. + + */ + +#ifndef __H5FED_MAP_H +#define __H5FED_MAP_H + +h5_id_t +H5FedMapTet2GlobalID ( + h5_file * const f, + h5_id_t * const global_vids + ); + +#endif +