1 #ifndef __CS_MESH_LOCATION_H__
2 #define __CS_MESH_LOCATION_H__
177 const char *criteria);
void cs_mesh_location_initialize(void)
Initialize mesh location API.
Definition: cs_mesh_location.c:267
int cs_mesh_location_n_locations(void)
Return number of mesh locations defined.
Definition: cs_mesh_location.c:246
void cs_mesh_location_build(cs_mesh_t *mesh, int id)
Associate mesh locations with a mesh.
Definition: cs_mesh_location.c:327
void( cs_mesh_location_select_t)(const cs_mesh_t *m, int location_id, cs_lnum_t *n_elts, cs_lnum_t **elt_list)
Function pointer to mesh location elements selection definition.
Definition: cs_mesh_location.h:92
Definition: cs_mesh_location.h:65
cs_mesh_location_type_t
Definition: cs_mesh_location.h:60
struct _cs_mesh_location_t cs_mesh_location_t
Definition: cs_mesh_location.h:74
#define BEGIN_C_DECLS
Definition: cs_defs.h:405
void cs_mesh_location_finalize(void)
Finalize mesh location API.
Definition: cs_mesh_location.c:293
int cs_mesh_location_define(const char *name, cs_mesh_location_type_t type, const char *criteria)
Define a new mesh location.
Definition: cs_mesh_location.c:442
Definition: cs_mesh_location.h:66
const char * cs_mesh_location_type_name[]
Definition: cs_mesh_location.c:129
const cs_lnum_t * cs_mesh_location_get_n_elts(int id)
Get a mesh location's number of elements.
Definition: cs_mesh_location.c:543
Definition: cs_mesh_location.h:68
Definition: cs_mesh_location.h:64
const cs_lnum_t * cs_mesh_location_get_elt_list(int id)
Get a mesh location's elements list, if present.
Definition: cs_mesh_location.c:564
const char * cs_mesh_location_get_name(int id)
Get a mesh location's name.
Definition: cs_mesh_location.c:502
Definition: cs_mesh_location.h:63
Definition: cs_mesh_location.h:67
int cs_mesh_location_define_by_func(const char *name, cs_mesh_location_type_t type, cs_mesh_location_select_t *func)
Define a new mesh location with a associated selection function.
Definition: cs_mesh_location.c:478
Definition: cs_mesh_location.h:62
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:292
#define END_C_DECLS
Definition: cs_defs.h:406
cs_mesh_location_type_t cs_mesh_location_get_type(int id)
Get a mesh location's type.
Definition: cs_mesh_location.c:520