1#ifndef CS_MESH_LOCATION_H
2#define CS_MESH_LOCATION_H
211 const char *criteria);
325"Use cs_mesh_location_get_elt_ids_try or cs_mesh_location_get_elt_ids instead"
469 bool explicit_elt_ids);
#define BEGIN_C_DECLS
Definition: cs_defs.h:528
#define END_C_DECLS
Definition: cs_defs.h:529
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:325
int cs_mesh_location_get_n_sub_ids(int id)
Get a mesh location's number of sub ids.
Definition: cs_mesh_location.cpp:982
const char * cs_mesh_location_type_name[]
void cs_mesh_location_build(cs_mesh_t *mesh, int id)
Associate mesh locations with a mesh.
Definition: cs_mesh_location.cpp:526
cs_mesh_location_type_t
Definition: cs_mesh_location.h:60
@ CS_MESH_LOCATION_CELLS
Definition: cs_mesh_location.h:63
@ CS_MESH_LOCATION_EDGES
Definition: cs_mesh_location.h:68
@ CS_MESH_LOCATION_PARTICLES
Definition: cs_mesh_location.h:69
@ CS_MESH_LOCATION_OTHER
Definition: cs_mesh_location.h:70
@ CS_MESH_LOCATION_INTERIOR_FACES
Definition: cs_mesh_location.h:64
@ CS_MESH_LOCATION_VERTICES
Definition: cs_mesh_location.h:66
@ CS_MESH_LOCATION_BOUNDARY_FACES
Definition: cs_mesh_location.h:65
@ CS_MESH_LOCATION_FACES
Definition: cs_mesh_location.h:67
@ CS_MESH_LOCATION_NONE
Definition: cs_mesh_location.h:62
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.cpp:1058
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.cpp:664
cs_mesh_location_def_t cs_mesh_location_get_definition_method(int id)
Get a mesh location's definition method.
Definition: cs_mesh_location.cpp:918
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.cpp:764
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.cpp:1021
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.cpp:1041
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.cpp:964
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.cpp:701
const cs_lnum_t * cs_mesh_location_get_n_elts(int id)
Get a mesh location's number of elements.
Definition: cs_mesh_location.cpp:821
const char * cs_mesh_location_get_name(int id)
Get a mesh location's name.
Definition: cs_mesh_location.cpp:780
const char * cs_mesh_location_get_selection_string(int id)
Get a mesh location's selection criteria string.
Definition: cs_mesh_location.cpp:946
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.cpp:733
int cs_mesh_location_n_locations(void)
Return number of mesh locations defined.
Definition: cs_mesh_location.cpp:433
const cs_lnum_t * cs_mesh_location_get_elt_ids(int id)
Get a mesh location's element ids.
Definition: cs_mesh_location.cpp:889
cs_mesh_location_def_t
Definition: cs_mesh_location.h:76
@ CS_MESH_LOCATION_DEF_NONE
Definition: cs_mesh_location.h:78
@ CS_MESH_LOCATION_DEF_SELECTION_FUNC
Definition: cs_mesh_location.h:80
@ CS_MESH_LOCATION_DEF_UNION
Definition: cs_mesh_location.h:81
@ CS_MESH_LOCATION_DEF_SELECTION_STR
Definition: cs_mesh_location.h:79
void cs_mesh_location_initialize(void)
Initialize mesh location API.
Definition: cs_mesh_location.cpp:456
int * cs_mesh_location_get_sub_ids(int id)
Get a mesh location's list of sub ids.
Definition: cs_mesh_location.cpp:1001
cs_mesh_location_type_t cs_mesh_location_get_type(int id)
Get a mesh location's type.
Definition: cs_mesh_location.cpp:798
void cs_mesh_location_finalize(void)
Finalize mesh location API.
Definition: cs_mesh_location.cpp:488
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.cpp:867
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
struct _cs_mesh_location_t cs_mesh_location_t
Definition: cs_mesh_location.h:87
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.cpp:845