#include "cs_base.h"
#include "cs_halo.h"
Go to the source code of this file.
|
void | cs_mesh_adjacencies_initialize (void) |
| Initialize mesh adjacencies helper API. More...
|
|
void | cs_mesh_adjacencies_finalize (void) |
| Finalize mesh adjacencies helper API. More...
|
|
void | cs_mesh_adjacencies_update_mesh (void) |
| Update mesh adjacencies helper API relative to mesh. More...
|
|
void | cs_mesh_adjacencies_update_cell_cells_e (void) |
| Update extended cell -> cell connectivites in mesh adjacencies helper API relative to mesh. More...
|
|
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. More...
|
|
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. More...
|
|
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 a stride. More...
|
|
void | cs_adjacency_destroy (cs_adjacency_t **p_adj) |
| Destroy a cs_adjacency_t structure. More...
|
|
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 -> B and (2) B -> C The resulting structure describes A -> C. It does not rely on a stride and has no sgn member. More...
|
|
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 deals with B -> A. More...
|
|
void | cs_adjacency_sort (cs_adjacency_t *adj) |
| Sort each sub-list related to an entry in a cs_adjacency_t structure. More...
|
|
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. More...
|
|
◆ cs_adjacency_compose()
Create a new cs_adjacency_t structure from the composition of two cs_adjacency_t structures: (1) A -> B and (2) B -> C The resulting structure describes A -> C. It does not rely on a stride and has no sgn member.
- Parameters
-
[in] | n_c_elts | number of elements in C set |
[in] | a2b | adjacency A -> B |
[in] | b2c | adjacency B -> C |
- Returns
- a pointer to the cs_adjacency_t structure A -> C
◆ cs_adjacency_create()
Create a cs_adjacency_t structure of size n_elts.
- Parameters
-
[in] | flag | metadata related to the new cs_adjacency to create |
[in] | stride | > 0 if useful otherwise ignored |
[in] | n_elts | number of entries of the indexed list |
- Returns
- a pointer to a new allocated cs_adjacency_t structure
◆ cs_adjacency_create_from_i_arrays()
Create a cs_adjacency_t structure sharing arrays scanned with a stride.
- Parameters
-
[in] | n_elts | number of elements |
[in] | idx | array of size n_elts + 1 |
[in] | ids | array of element ids (size = idx[n_elts]) |
[in] | sgn | array storing the orientation (may be NULL) |
- Returns
- a pointer to a new allocated cs_adjacency_t structure
◆ cs_adjacency_create_from_s_arrays()
Create a cs_adjacency_t structure sharing arrays scanned with a stride.
- Parameters
-
[in] | n_elts | number of elements |
[in] | stride | value of the stride |
[in] | ids | array of element ids (size = stride * n_elts) |
[in] | sgn | array storing the orientation (may be NULL) |
- Returns
- a pointer to a new allocated cs_adjacency_t structure
◆ cs_adjacency_destroy()
◆ cs_adjacency_dump()
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.
- Parameters
-
[in] | name | name of the dump file. Can be set to NULL |
[in] | _f | pointer to a FILE structure. Can be set to NULL. |
[in] | adj | pointer to a cs_adjacency_t structure |
◆ cs_adjacency_sort()
Sort each sub-list related to an entry in a cs_adjacency_t structure.
- Parameters
-
◆ cs_adjacency_transpose()
Create a new cs_adjacency_t structure from a one corresponding to A -> B. The resulting structure deals with B -> A.
- Parameters
-
[in] | n_b_elts | size of the set of B elements |
[in] | a2b | pointer to the A -> B cs_adjacency_t structure |
- Returns
- a new pointer to the cs_adjacency_t structure B -> A
◆ cs_mesh_adjacencies_finalize()
void cs_mesh_adjacencies_finalize |
( |
void |
| ) |
|
Finalize mesh adjacencies helper API.
◆ cs_mesh_adjacencies_initialize()
void cs_mesh_adjacencies_initialize |
( |
void |
| ) |
|
Initialize mesh adjacencies helper API.
◆ cs_mesh_adjacencies_update_cell_cells_e()
void cs_mesh_adjacencies_update_cell_cells_e |
( |
void |
| ) |
|
Update extended cell -> cell connectivites in mesh adjacencies helper API relative to mesh.
◆ cs_mesh_adjacencies_update_mesh()
void cs_mesh_adjacencies_update_mesh |
( |
void |
| ) |
|
Update mesh adjacencies helper API relative to mesh.
◆ cs_glob_mesh_adjacencies