programmer's documentation
Data Structures | Macros | Functions
cs_cdo_connect.h File Reference
#include "cs_base.h"
#include "cs_mesh.h"
#include "cs_mesh_quantities.h"
#include "cs_cdo.h"
#include "cs_sla.h"
Include dependency graph for cs_cdo_connect.h:

Go to the source code of this file.

Data Structures

struct  cs_connect_index_t
 
struct  cs_connect_info_t
 
struct  cs_cdo_connect_t
 

Macros

#define CS_CDO_CONNECT_IN   (1 << 0) /* Interior entity */
 
#define CS_CDO_CONNECT_BD   (1 << 1) /* Border entity */
 
#define CS_CDO_CONNECT_II   (1 << 2) /* Interior ent. connected to interior */
 
#define CS_CDO_CONNECT_IB   (1 << 3) /* Interior ent. connected to border */
 
#define CS_CDO_CONNECT_BI   (1 << 4) /* Border ent. connected to interior */
 
#define CS_CDO_CONNECT_BB   (1 << 5) /* Border ent. connected to border */
 

Functions

const char * cs_cdo_connect_flagname (short int flag)
 String related to flag in cs_connect_info_t. More...
 
cs_cdo_connect_tcs_cdo_connect_build (const cs_mesh_t *m)
 Define a cs_cdo_connect_t structure. More...
 
cs_cdo_connect_tcs_cdo_connect_free (cs_cdo_connect_t *connect)
 Destroy a cs_cdo_connect_t structure. More...
 
void cs_cdo_connect_resume (const cs_cdo_connect_t *connect)
 Resume connectivity information. More...
 
void cs_cdo_connect_dump (const cs_cdo_connect_t *connect)
 Dump a cs_cdo_connect_t structure. More...
 
cs_connect_index_tcs_index_create (int n)
 Create an index structure of size n. More...
 
cs_connect_index_tcs_index_map (int n, int *idx, int *ids)
 Map arrays into an index structure of size n (owner = false) More...
 
void cs_index_free (cs_connect_index_t **pidx)
 Destroy a cs_connect_index_t structure. More...
 
cs_connect_index_tcs_index_compose (int nc, const cs_connect_index_t *a2b, const cs_connect_index_t *b2c)
 From 2 indexes : A -> B and B -> C create a new index A -> C. More...
 
cs_connect_index_tcs_index_transpose (int nb, const cs_connect_index_t *a2b)
 From a cs_connect_index_t struct. A -> B create a new index B -> A. More...
 
void cs_index_sort (cs_connect_index_t *x)
 Sort each list related to an entry in a cs_connect_index_t structure. More...
 
void cs_index_dump (const char *name, FILE *f, cs_connect_index_t *x)
 Dump a cs_connect_index_t structure to a file or into the standard output. More...
 

Macro Definition Documentation

#define CS_CDO_CONNECT_BB   (1 << 5) /* Border ent. connected to border */
#define CS_CDO_CONNECT_BD   (1 << 1) /* Border entity */
#define CS_CDO_CONNECT_BI   (1 << 4) /* Border ent. connected to interior */
#define CS_CDO_CONNECT_IB   (1 << 3) /* Interior ent. connected to border */
#define CS_CDO_CONNECT_II   (1 << 2) /* Interior ent. connected to interior */
#define CS_CDO_CONNECT_IN   (1 << 0) /* Interior entity */

Function Documentation

cs_cdo_connect_t* cs_cdo_connect_build ( const cs_mesh_t m)

Define a cs_cdo_connect_t structure.

Parameters
[in]mpointer to a cs_mesh_t structure
Returns
a cs_cdo_connect_t structure
Parameters
[in]mpointer to a cs_mesh_t structure
Returns
a pointer to a cs_cdo_connect_t structure
void cs_cdo_connect_dump ( const cs_cdo_connect_t connect)

Dump a cs_cdo_connect_t structure.

Parameters
[in]connectpointer to cs_cdo_connect_t structure
const char* cs_cdo_connect_flagname ( short int  flag)

String related to flag in cs_connect_info_t.

Parameters
[in]flagretrieve name for this flag

String related to flag in cs_connect_info_t.

Parameters
[in]flagretrieve name for this flag
cs_cdo_connect_t* cs_cdo_connect_free ( cs_cdo_connect_t connect)

Destroy a cs_cdo_connect_t structure.

Parameters
[in]connectpointer to the cs_cdo_connect_t struct. to destroy
Returns
a NULL pointer
void cs_cdo_connect_resume ( const cs_cdo_connect_t connect)

Resume connectivity information.

Parameters
[in]connectpointer to cs_cdo_connect_t structure
cs_connect_index_t* cs_index_compose ( int  nc,
const cs_connect_index_t a2b,
const cs_connect_index_t b2c 
)

From 2 indexes : A -> B and B -> C create a new index A -> C.

Parameters
[in]ncnumber of elements in C set
[in]xabpointer to the index A -> B
[in]b2cpointer to the index B -> C
Returns
a pointer to the cs_connect_index_t structure A -> C
cs_connect_index_t* cs_index_create ( int  n)

Create an index structure of size n.

Parameters
[in]nnumber of entries of the indexed list
Returns
a pointer to a cs_connect_index_t
void cs_index_dump ( const char *  name,
FILE *  _f,
cs_connect_index_t x 
)

Dump a cs_connect_index_t structure to a file or into the standard output.

Parameters
[in]namename of the dump file. Can be set to NULL
[in]fpointer to a FILE structure. Can be set to NULL.
[in]xpointer to a cs_connect_index_t structure
[in]namename of the dump file. Can be set to NULL
[in]_fpointer to a FILE structure. Can be set to NULL.
[in]xpointer to a cs_connect_index_t structure
void cs_index_free ( cs_connect_index_t **  pidx)

Destroy a cs_connect_index_t structure.

Parameters
[in]pidxpointer of pointer to a cs_connect_index_t structure
cs_connect_index_t* cs_index_map ( int  n,
int *  idx,
int *  ids 
)

Map arrays into an index structure of size n (owner = false)

Parameters
[in]nnumber of entries of the indexed list
[in]idxarray of size n+1
[in]idsarray of size idx[n]
Returns
a pointer to a cs_connect_index_t
void cs_index_sort ( cs_connect_index_t x)

Sort each list related to an entry in a cs_connect_index_t structure.

Parameters
[in]xpointer to a cs_connect_index_t structure

Sort each list related to an entry in a cs_connect_index_t structure.

Parameters
[in]xpointer to a cs_connect_index_t structure
cs_connect_index_t* cs_index_transpose ( int  nb,
const cs_connect_index_t a2b 
)

From a cs_connect_index_t struct. A -> B create a new index B -> A.

Parameters
[in]nbsize of the "b" set
[in]a2bpointer to the index A -> B
Returns
a new pointer to the cs_connect_index_t structure B -> A

From a cs_connect_index_t struct. A -> B create a new index B -> A.

Parameters
[in]nbsize of the "b" set
[in]a2bpointer to the index A -> B
Returns
a new pointer to the cs_connect_index_t structure B -> A