![]() |
programmer's documentation
|
#include "cs_defs.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "bft_mem.h"
#include "bft_printf.h"
#include "cs_order.h"
#include "cs_sort.h"
#include "cs_cdo.h"
#include "cs_cdo_connect.h"
Macros | |
#define | CS_CDO_CONNECT_DBG 0 |
Functions | |
static void | _add_f2e_entry (cs_lnum_t shift, cs_lnum_t v1_num, cs_lnum_t v2_num, const _edge_builder_t *builder, cs_sla_matrix_t *f2e) |
Add a entry in the face –> edges connectivity. More... | |
static cs_sla_matrix_t * | _build_f2e_connect (const cs_mesh_t *m, const _edge_builder_t *builder) |
Define the face -> edges connectivity which is stored in a cs_sla_matrix_t structure. More... | |
static cs_sla_matrix_t * | _build_e2v_connect (const _edge_builder_t *builder) |
Define the edge -> vertices connectivity which is stored in a cs_sla_matrix_t structure. More... | |
static _edge_builder_t * | _create_edge_builder (const cs_mesh_t *m) |
Allocate and define a _edge_builder_t structure. More... | |
static void | _free_edge_builder (_edge_builder_t **p_builder) |
Destroy a _edge_builder structure. More... | |
static cs_sla_matrix_t * | _build_c2f_connect (const cs_mesh_t *mesh) |
Define the cell -> faces connectivity which is stored in a cs_sla_matrix_t structure. More... | |
static void | _build_additional_connect (cs_cdo_connect_t *connect) |
Build additional connectivities for accessing geometrical quantities c2e: cell –> edges connectivity c2v: cell –> vertices connectivity. More... | |
static void | _compute_max_ent (cs_cdo_connect_t *connect) |
Compute max number of entities by cell. More... | |
static cs_connect_info_t * | _connect_info_create (cs_lnum_t n_elts) |
Allocated and initialize a cs_connect_info_t structure. More... | |
static cs_connect_info_t * | _connect_info_free (cs_connect_info_t *info) |
Allocated and initialize a cs_cdo_connect_info_t structure. More... | |
static void | _define_connect_info (const cs_mesh_t *m, cs_cdo_connect_t *connect) |
Define a status Int/Border. More... | |
const char * | cs_cdo_connect_flagname (short int flag) |
String related to flag in cs_cdo_connect_info_t. More... | |
cs_cdo_connect_t * | cs_cdo_connect_build (const cs_mesh_t *m) |
Define a cs_cdo_connect_t structure. More... | |
cs_cdo_connect_t * | cs_cdo_connect_free (cs_cdo_connect_t *connect) |
Destroy a cs_cdo_connect_t structure. More... | |
void | cs_cdo_connect_summary (const cs_cdo_connect_t *connect) |
Summary of connectivity information. More... | |
void | cs_cdo_connect_dump (const cs_cdo_connect_t *connect) |
Dump a cs_cdo_connect_t structure. More... | |
#define CS_CDO_CONNECT_DBG 0 |
|
static |
Add a entry in the face –> edges connectivity.
[in] | shift | position where to add the new entry |
[in] | v1_num | number of the first vertex |
[in] | v2_num | number of the second vertex |
[in] | builder | pointer to a _edge_builder_t structure |
[in,out] | f2e | face –> edges connectivity |
|
static |
Build additional connectivities for accessing geometrical quantities c2e: cell –> edges connectivity c2v: cell –> vertices connectivity.
[in,out] | connect | pointer to the cs_cdo_connect_t struct. |
|
static |
Define the cell -> faces connectivity which is stored in a cs_sla_matrix_t structure.
[in] | mesh | pointer to a cs_mesh_t structure |
|
static |
Define the edge -> vertices connectivity which is stored in a cs_sla_matrix_t structure.
[in] | builder | pointer to the _edge_builder_t structure |
|
static |
Define the face -> edges connectivity which is stored in a cs_sla_matrix_t structure.
[in] | m | pointer to a cs_mesh_t structure |
[in] | builder | pointer to the _edge_builder_t structure |
|
static |
Compute max number of entities by cell.
[in] | connect | pointer to the cs_cdo_connect_t struct. |
|
static |
Allocated and initialize a cs_connect_info_t structure.
[in] | n_elts | Size of the maximal set of entities related to this structure |
|
static |
Allocated and initialize a cs_cdo_connect_info_t structure.
[in] | info | Info structure |
|
static |
Allocate and define a _edge_builder_t structure.
[in] | m | pointer to the cs_mesh_t structure |
|
static |
Define a status Int/Border.
[in] | m | pointer to a cs_mesh_t structure |
[in,out] | connect | pointer to a cs_cdo_connect_t struct. |
|
static |
Destroy a _edge_builder structure.
[in] | p_builder | pointer to the _edge_builder structure pointer |
cs_cdo_connect_t* cs_cdo_connect_build | ( | const cs_mesh_t * | m | ) |
Define a cs_cdo_connect_t structure.
[in] | m | pointer to a cs_mesh_t structure |
void cs_cdo_connect_dump | ( | const cs_cdo_connect_t * | connect | ) |
Dump a cs_cdo_connect_t structure.
[in] | connect | pointer to cs_cdo_connect_t structure |
const char* cs_cdo_connect_flagname | ( | short int | flag | ) |
String related to flag in cs_cdo_connect_info_t.
String related to flag in cs_connect_info_t.
[in] | flag | retrieve name for this flag |
cs_cdo_connect_t* cs_cdo_connect_free | ( | cs_cdo_connect_t * | connect | ) |
Destroy a cs_cdo_connect_t structure.
[in] | connect | pointer to the cs_cdo_connect_t struct. to destroy |
void cs_cdo_connect_summary | ( | const cs_cdo_connect_t * | connect | ) |
Summary of connectivity information.
[in] | connect | pointer to cs_cdo_connect_t structure |