1 #ifndef __CS_MESH_LOCATION_H__ 2 #define __CS_MESH_LOCATION_H__ 211 const char *criteria);
466 bool explicit_elt_ids);
void cs_mesh_location_initialize(void)
Initialize mesh location API.
Definition: cs_mesh_location.c:458
int cs_mesh_location_n_locations(void)
Return number of mesh locations defined.
Definition: cs_mesh_location.c:435
int * cs_mesh_location_get_sub_ids(int id)
Get a mesh location's list of sub ids.
Definition: cs_mesh_location.c:1003
int cs_mesh_location_get_id_by_name(const char *ref_name)
Find the related location id from the location name.
Definition: cs_mesh_location.c:766
int cs_mesh_location_add_by_union(const char *name, cs_mesh_location_type_t type, int n_ml_ids, const int *ml_ids, bool complement)
Define a new mesh location.
Definition: cs_mesh_location.c:735
void cs_mesh_location_build(cs_mesh_t *mesh, int id)
Associate mesh locations with a mesh.
Definition: cs_mesh_location.c:528
void cs_mesh_location_set_explicit_ids(int id, bool explicit_elt_ids)
Set behavior of cs_mesh_location_get_elt_ids for a given mesh location and locations based on it...
Definition: cs_mesh_location.c:1060
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:87
void() cs_mesh_location_select_t(void *input, const cs_mesh_t *m, int location_id, cs_lnum_t *n_elts, cs_lnum_t **elt_ids)
Definition: cs_mesh_location.h:110
#define BEGIN_C_DECLS
Definition: cs_defs.h:510
Definition: cs_mesh_location.h:68
void cs_mesh_location_finalize(void)
Finalize mesh location API.
Definition: cs_mesh_location.c:490
const cs_lnum_t * cs_mesh_location_get_elt_ids(int id)
Get a mesh location's element ids.
Definition: cs_mesh_location.c:891
Definition: cs_mesh_location.h:66
Definition: cs_mesh_location.h:81
const cs_lnum_t * cs_mesh_location_get_elt_ids_try(int id)
Get a mesh location's element ids, if present.
Definition: cs_mesh_location.c:869
const char * cs_mesh_location_type_name[]
cs_mesh_location_def_t
Definition: cs_mesh_location.h:76
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:823
Definition: cs_mesh_location.h:78
Definition: cs_mesh_location.h:80
int cs_mesh_location_add_by_func(const char *name, cs_mesh_location_type_t type, cs_mesh_location_select_t *func, void *input)
Define a new mesh location with an associated selection function.
Definition: cs_mesh_location.c:703
Definition: cs_mesh_location.h:70
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:847
cs_mesh_location_def_t cs_mesh_location_get_definition_method(int id)
Get a mesh location's definition method.
Definition: cs_mesh_location.c:920
bool cs_mesh_location_is_complement(int id)
Check if a mesh location is built as a complement of other mesh locations.
Definition: cs_mesh_location.c:1023
cs_mesh_location_select_t * cs_mesh_location_get_selection_function(int id)
Get a mesh location's selection function pointer.
Definition: cs_mesh_location.c:966
int cs_mesh_location_add(const char *name, cs_mesh_location_type_t type, const char *criteria)
Define a new mesh location.
Definition: cs_mesh_location.c:666
const char * cs_mesh_location_get_selection_string(int id)
Get a mesh location's selection criteria string.
Definition: cs_mesh_location.c:948
const char * cs_mesh_location_get_name(int id)
Get a mesh location's name.
Definition: cs_mesh_location.c:782
int cs_mesh_location_get_n_sub_ids(int id)
Get a mesh location's number of sub ids.
Definition: cs_mesh_location.c:984
Definition: cs_mesh_location.h:63
Definition: cs_mesh_location.h:69
bool cs_mesh_location_get_explicit_ids(int id)
Check if cs_mesh_location_get_elt_ids always returns explicit element ids for a given mesh location...
Definition: cs_mesh_location.c:1043
Definition: cs_mesh_location.h:62
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:316
#define END_C_DECLS
Definition: cs_defs.h:511
cs_mesh_location_type_t cs_mesh_location_get_type(int id)
Get a mesh location's type.
Definition: cs_mesh_location.c:800
Definition: cs_mesh_location.h:79
Definition: cs_mesh_location.h:67