|
My Project
programmer's documentation
|
Go to the documentation of this file. 1 #ifndef __CS_MESH_ADJACENCIES_H__
2 #define __CS_MESH_ADJACENCIES_H__
53 #define CS_ADJACENCY_SHARED (1 << 0)
55 #define CS_ADJACENCY_STRIDE (1 << 1)
57 #define CS_ADJACENCY_SIGNED (1 << 2)
short int * sgn
Definition: cs_mesh_adjacencies.h:98
cs_lnum_t * cell_b_faces_idx
Definition: cs_mesh_adjacencies.h:84
cs_lnum_t * cell_cells_idx
Definition: cs_mesh_adjacencies.h:74
cs_lnum_t * idx
Definition: cs_mesh_adjacencies.h:96
cs_adjacency_t * cs_adjacency_transpose(int n_b_elts, const cs_adjacency_t *a2b)
Create a new cs_adjacency_t structure from a one corresponding to A -> B. The resulting structure dea...
Definition: cs_mesh_adjacencies.c:828
void cs_adjacency_remove_self_entries(cs_adjacency_t *adj)
In an indexed list, remove id(s) corresponding to the current index. Useful for instance in order to ...
Definition: cs_mesh_adjacencies.c:1007
const cs_mesh_adjacencies_t * cs_glob_mesh_adjacencies
void cs_mesh_adjacencies_update_mesh(void)
Update mesh adjacencies helper API relative to mesh.
Definition: cs_mesh_adjacencies.c:390
#define END_C_DECLS
Definition: cs_defs.h:468
const cs_lnum_t * cell_cells_e
Definition: cs_mesh_adjacencies.h:80
cs_lnum_t * cell_cells
Definition: cs_mesh_adjacencies.h:75
cs_adjacency_t * cs_adjacency_create(cs_flag_t flag, int stride, cs_lnum_t n_elts)
Create a cs_adjacency_t structure of size n_elts.
Definition: cs_mesh_adjacencies.c:438
#define BEGIN_C_DECLS
Definition: cs_defs.h:467
void cs_adjacency_sort(cs_adjacency_t *adj)
Sort each sub-list related to an entry in a cs_adjacency_t structure.
Definition: cs_mesh_adjacencies.c:956
void cs_adjacency_destroy(cs_adjacency_t **p_adj)
Destroy a cs_adjacency_t structure.
Definition: cs_mesh_adjacencies.c:576
cs_adjacency_t * cs_adjacency_create_from_s_arrays(cs_lnum_t n_elts, int stride, cs_lnum_t *ids, short int *sgn)
Create a cs_adjacency_t structure sharing arrays scanned with a stride.
Definition: cs_mesh_adjacencies.c:498
void cs_mesh_adjacencies_finalize(void)
Finalize mesh adjacencies helper API.
Definition: cs_mesh_adjacencies.c:370
bool single_faces_to_cells
Definition: cs_mesh_adjacencies.h:69
void const cs_int_t const cs_int_t const cs_int_t const cs_int_t * stride
Definition: cs_sat_coupling.h:325
cs_adjacency_t * cs_mesh_adjacency_c2f(const cs_mesh_t *m, int boundary_order)
Build a cells to faces adjacency structure.
Definition: cs_mesh_adjacencies.c:1138
int stride
Definition: cs_mesh_adjacencies.h:93
cs_adjacency_t * cs_adjacency_compose(int n_c_elts, const cs_adjacency_t *a2b, const cs_adjacency_t *b2c)
Create a new cs_adjacency_t structure from the composition of two cs_adjacency_t structures: (1) A ->...
Definition: cs_mesh_adjacencies.c:614
cs_adjacency_t * cs_adjacency_create_from_i_arrays(cs_lnum_t n_elts, cs_lnum_t *idx, cs_lnum_t *ids, short int *sgn)
Create a cs_adjacency_t structure sharing arrays scanned with an index.
Definition: cs_mesh_adjacencies.c:544
cs_lnum_t * ids
Definition: cs_mesh_adjacencies.h:97
Definition: cs_mesh_adjacencies.h:65
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:298
Definition: cs_mesh_adjacencies.h:90
const cs_lnum_t * cell_cells_e_idx
Definition: cs_mesh_adjacencies.h:79
cs_flag_t flag
Definition: cs_mesh_adjacencies.h:92
void cs_mesh_adjacencies_update_cell_cells_e(void)
Update extended cell -> cell connectivites in mesh adjacencies helper API relative to mesh.
Definition: cs_mesh_adjacencies.c:415
cs_adjacency_t * cs_mesh_adjacency_v2v(const cs_mesh_t *m)
Definition: cs_mesh_adjacencies.c:1243
void cs_mesh_adjacencies_initialize(void)
Initialize mesh adjacencies helper API.
Definition: cs_mesh_adjacencies.c:347
unsigned short int cs_flag_t
Definition: cs_defs.h:304
cs_lnum_t * cell_b_faces
Definition: cs_mesh_adjacencies.h:85
void cs_adjacency_dump(const char *name, FILE *_f, cs_adjacency_t *adj)
Dump a cs_adjacency_t structure to a file or into the standard output.
Definition: cs_mesh_adjacencies.c:1045
cs_lnum_t n_elts
Definition: cs_mesh_adjacencies.h:95