Go to the source code of this file.
Data Structures | |
struct | cs_cdo_balance_t |
Macros | |
#define | CS_CDO_SYNC_ZERO_VALUE 1 |
#define | CS_CDO_SYNC_MEAN_VALUE 2 |
Functions | |
void | cs_cdo_toolbox_init (const cs_cdo_connect_t *connect, cs_flag_t eb_flag, cs_flag_t fb_flag, cs_flag_t cb_flag, cs_flag_t vb_flag, cs_flag_t vcb_flag, cs_flag_t hho_flag) |
Allocate a pointer to a buffer of size at least the n_cells for managing temporary usage of memory when dealing with equations The size of the temporary buffer can be bigger according to the numerical settings Set also shared pointers from the main domain members. More... | |
void | cs_cdo_toolbox_finalize (void) |
Free buffers shared among the equations solved with CDO schemes. More... | |
cs_real_t * | cs_cdo_toolbox_get_tmpbuf (void) |
Retrieve a pointer to a buffer of size at least the 2*n_cells The size of the temporary buffer can be bigger according to the numerical settings. More... | |
size_t | cs_cdo_toolbox_get_tmpbuf_size (void) |
Get the allocation size of the temporary buffer. More... | |
cs_cdo_balance_t * | cs_cdo_balance_create (cs_flag_t location, cs_lnum_t size) |
Allocate a cs_cdo_balance_t structure. More... | |
void | cs_cdo_balance_reset (cs_cdo_balance_t *b) |
Reset a cs_cdo_balance_t structure. More... | |
void | cs_cdo_balance_sync (const cs_cdo_connect_t *connect, cs_cdo_balance_t *b) |
Synchronize balance terms if this is a parallel computation. More... | |
void | cs_cdo_balance_destroy (cs_cdo_balance_t **p_balance) |
Free a cs_cdo_balance_t structure. More... | |
void | cs_cdo_sync_vol_def_at_vertices (int n_defs, cs_xdef_t **defs, cs_lnum_t def2v_idx[], cs_lnum_t def2v_ids[]) |
Synchronize the volumetric definitions to consider at each vertex. More... | |
void | cs_cdo_sync_vol_def_at_edges (int n_defs, cs_xdef_t **defs, cs_lnum_t def2e_idx[], cs_lnum_t def2e_ids[]) |
Synchronize the volumetric definitions to consider at each edge. More... | |
void | cs_cdo_sync_vol_def_at_faces (int n_defs, cs_xdef_t **defs, cs_lnum_t def2f_idx[], cs_lnum_t def2f_ids[]) |
Synchronize the volumetric definitions to consider at each face. More... | |
void | cs_cdo_sync_vertex_mean_values (int dim, int *counter, cs_real_t *values) |
Compute the mean-value across ranks at each vertex. More... | |
#define CS_CDO_SYNC_MEAN_VALUE 2 |
#define CS_CDO_SYNC_ZERO_VALUE 1 |
cs_cdo_balance_t* cs_cdo_balance_create | ( | cs_flag_t | location, |
cs_lnum_t | size | ||
) |
Allocate a cs_cdo_balance_t structure.
[in] | location | where the balance is performed |
[in] | size | size of arrays in the structure |
void cs_cdo_balance_destroy | ( | cs_cdo_balance_t ** | p_balance | ) |
Free a cs_cdo_balance_t structure.
[in,out] | p_balance | pointer to the pointer to free |
void cs_cdo_balance_reset | ( | cs_cdo_balance_t * | b | ) |
Reset a cs_cdo_balance_t structure.
[in,out] | b | pointer to a cs_cdo_balance_t to reset |
void cs_cdo_balance_sync | ( | const cs_cdo_connect_t * | connect, |
cs_cdo_balance_t * | b | ||
) |
Synchronize balance terms if this is a parallel computation.
[in] | connect | pointer to a cs_cdo_connect_t structure |
[in,out] | b | pointer to a cs_cdo_balance_t to sync |
void cs_cdo_sync_vertex_mean_values | ( | int | dim, |
int * | counter, | ||
cs_real_t * | values | ||
) |
Compute the mean-value across ranks at each vertex.
[in] | dim | number of entries for each vertex |
[in] | counter | number of occurences on this rank |
[in,out] | values | array to update |
void cs_cdo_sync_vol_def_at_edges | ( | int | n_defs, |
cs_xdef_t ** | defs, | ||
cs_lnum_t | def2e_idx[], | ||
cs_lnum_t | def2e_ids[] | ||
) |
Synchronize the volumetric definitions to consider at each edge.
[in] | n_defs | number of definitions |
[in] | defs | number of times the values has been updated |
[in,out] | def2e_idx | index array to define |
[in,out] | def2e_ids | array of ids to define |
void cs_cdo_sync_vol_def_at_faces | ( | int | n_defs, |
cs_xdef_t ** | defs, | ||
cs_lnum_t | def2f_idx[], | ||
cs_lnum_t | def2f_ids[] | ||
) |
Synchronize the volumetric definitions to consider at each face.
[in] | n_defs | number of definitions |
[in] | defs | number of times the values has been updated |
[in,out] | def2f_idx | index array to define |
[in,out] | def2f_ids | array of ids to define |
void cs_cdo_sync_vol_def_at_vertices | ( | int | n_defs, |
cs_xdef_t ** | defs, | ||
cs_lnum_t | def2v_idx[], | ||
cs_lnum_t | def2v_ids[] | ||
) |
Synchronize the volumetric definitions to consider at each vertex.
[in] | n_defs | number of definitions |
[in] | defs | number of times the values has been updated |
[in,out] | def2v_idx | index array to define |
[in,out] | def2v_ids | array of ids to define |
void cs_cdo_toolbox_finalize | ( | void | ) |
Free buffers shared among the equations solved with CDO schemes.
cs_real_t* cs_cdo_toolbox_get_tmpbuf | ( | void | ) |
Retrieve a pointer to a buffer of size at least the 2*n_cells The size of the temporary buffer can be bigger according to the numerical settings.
size_t cs_cdo_toolbox_get_tmpbuf_size | ( | void | ) |
Get the allocation size of the temporary buffer.
void cs_cdo_toolbox_init | ( | const cs_cdo_connect_t * | connect, |
cs_flag_t | eb_flag, | ||
cs_flag_t | fb_flag, | ||
cs_flag_t | cb_flag, | ||
cs_flag_t | vb_flag, | ||
cs_flag_t | vcb_flag, | ||
cs_flag_t | hho_flag | ||
) |
Allocate a pointer to a buffer of size at least the n_cells for managing temporary usage of memory when dealing with equations The size of the temporary buffer can be bigger according to the numerical settings Set also shared pointers from the main domain members.
[in] | connect | pointer to a cs_cdo_connect_t structure |
[in] | eb_flag | metadata for Edge-based schemes |
[in] | fb_flag | metadata for Face-based schemes |
[in] | cb_flag | metadata for Cell-based schemes |
[in] | vb_flag | metadata for Vertex-based schemes |
[in] | vcb_flag | metadata for Vertex+Cell-basde schemes |
[in] | hho_flag | metadata for HHO schemes |