#include "base/cs_base.h"#include "base/cs_dispatch.h"#include "base/cs_halo.h"#include "alge/cs_matrix.h"
Include dependency graph for cs_grid_priv.h:Go to the source code of this file.
Classes | |
| struct | cs_grid_t |
Functions | |
| void | cs_grid_set_diag_dom_clip_factor (double factor) |
| Set factor to ensure diagonal dominance. More... | |
| cs_grid_t * | cs_grid_create_from_shared (cs_lnum_t n_faces, cs_lnum_t db_size, cs_lnum_t eb_size, const cs_lnum_2_t *face_cell, const cs_matrix_t *a, bool conv_diff) |
| cs_grid_t * | cs_grid_create_from_parent (const cs_matrix_t *a, int n_ranks) |
| void | cs_grid_destroy (cs_grid_t **grid) |
| void | cs_grid_free_quantities (cs_grid_t *g) |
| void | cs_grid_get_info (const cs_grid_t *g, int *level, bool *symmetric, cs_lnum_t *db_size, cs_lnum_t *eb_size, int *n_ranks, cs_lnum_t *n_rows, cs_lnum_t *n_cols_ext, cs_lnum_t *n_entries, cs_gnum_t *n_g_rows) |
| cs_alloc_mode_t | cs_grid_get_alloc_mode (const cs_grid_t *g) |
| cs_lnum_t | cs_grid_get_n_rows (const cs_grid_t *g) |
| cs_lnum_t | cs_grid_get_n_cols_ext (const cs_grid_t *g) |
| cs_lnum_t | cs_grid_get_n_cols_max (const cs_grid_t *g) |
| cs_gnum_t | cs_grid_get_n_g_rows (const cs_grid_t *g) |
| const cs_matrix_t * | cs_grid_get_matrix (const cs_grid_t *g) |
| MPI_Comm | cs_grid_get_comm (const cs_grid_t *g) |
| MPI_Comm | cs_grid_get_comm_merge (MPI_Comm parent, int merge_stride) |
| cs_grid_t * | cs_grid_coarsen (const cs_grid_t *f, cs_alloc_mode_t alloc_mode, cs_grid_coarsening_t coarsening_type, int aggregation_limit, int verbosity, int merge_stride, int merge_rows_mean_threshold, cs_gnum_t merge_rows_glob_threshold, double relaxation_parameter) |
| cs_grid_t * | cs_grid_coarsen_to_single (const cs_grid_t *f, cs_alloc_mode_t alloc_mode, int merge_stride, int verbosity) |
| void | cs_grid_merge_ranks (cs_grid_t *g, int merge_stride, int verbosity) |
| void | cs_grid_merge_bottom (cs_grid_t *g, int verbosity, int n_max_ranks, float max_row_factor) |
| void | cs_grid_project_row_num (const cs_grid_t *g, cs_lnum_t n_base_rows, int max_num, int c_row_num[]) |
| void | cs_grid_project_row_rank (const cs_grid_t *g, cs_lnum_t n_base_rows, int f_row_rank[]) |
| void | cs_grid_project_var (const cs_grid_t *g, cs_lnum_t n_base_rows, const cs_real_t c_var[], cs_real_t f_var[]) |
| void | cs_grid_project_diag_dom (const cs_grid_t *g, cs_lnum_t n_base_rows, cs_real_t diag_dom[]) |
| void | cs_grid_finalize (void) |
| void | cs_grid_dump (const cs_grid_t *g) |
| void | cs_grid_restrict_row_var (cs_dispatch_context &ctx, const cs_grid_t *f, const cs_grid_t *c, const cs_real_t *f_var, cs_real_t *c_var) |
| void | cs_grid_prolong_row_var (cs_dispatch_context &ctx, const cs_grid_t *c, const cs_grid_t *f, bool increment, cs_real_t *c_var, cs_real_t *f_var) |
Variables | |
| const char * | cs_grid_coarsening_type_name [] |
| cs_grid_t * cs_grid_coarsen | ( | const cs_grid_t * | f, |
| cs_alloc_mode_t | alloc_mode, | ||
| cs_grid_coarsening_t | coarsening_type, | ||
| int | aggregation_limit, | ||
| int | verbosity, | ||
| int | merge_stride, | ||
| int | merge_rows_mean_threshold, | ||
| cs_gnum_t | merge_rows_glob_threshold, | ||
| double | relaxation_parameter | ||
| ) |
| cs_grid_t * cs_grid_coarsen_to_single | ( | const cs_grid_t * | f, |
| cs_alloc_mode_t | alloc_mode, | ||
| int | merge_stride, | ||
| int | verbosity | ||
| ) |
| cs_grid_t * cs_grid_create_from_parent | ( | const cs_matrix_t * | a, |
| int | n_ranks | ||
| ) |
| cs_grid_t * cs_grid_create_from_shared | ( | cs_lnum_t | n_faces, |
| cs_lnum_t | db_size, | ||
| cs_lnum_t | eb_size, | ||
| const cs_lnum_2_t * | face_cell, | ||
| const cs_matrix_t * | a, | ||
| bool | conv_diff | ||
| ) |
| void cs_grid_destroy | ( | cs_grid_t ** | grid | ) |
| void cs_grid_dump | ( | const cs_grid_t * | g | ) |
| void cs_grid_finalize | ( | void | ) |
| void cs_grid_free_quantities | ( | cs_grid_t * | g | ) |
| cs_alloc_mode_t cs_grid_get_alloc_mode | ( | const cs_grid_t * | g | ) |
| MPI_Comm cs_grid_get_comm | ( | const cs_grid_t * | g | ) |
| MPI_Comm cs_grid_get_comm_merge | ( | MPI_Comm | parent, |
| int | merge_stride | ||
| ) |
| void cs_grid_get_info | ( | const cs_grid_t * | g, |
| int * | level, | ||
| bool * | symmetric, | ||
| cs_lnum_t * | db_size, | ||
| cs_lnum_t * | eb_size, | ||
| int * | n_ranks, | ||
| cs_lnum_t * | n_rows, | ||
| cs_lnum_t * | n_cols_ext, | ||
| cs_lnum_t * | n_entries, | ||
| cs_gnum_t * | n_g_rows | ||
| ) |
| const cs_matrix_t * cs_grid_get_matrix | ( | const cs_grid_t * | g | ) |
| cs_lnum_t cs_grid_get_n_cols_ext | ( | const cs_grid_t * | g | ) |
| cs_lnum_t cs_grid_get_n_cols_max | ( | const cs_grid_t * | g | ) |
| cs_gnum_t cs_grid_get_n_g_rows | ( | const cs_grid_t * | g | ) |
| cs_lnum_t cs_grid_get_n_rows | ( | const cs_grid_t * | g | ) |
| void cs_grid_merge_bottom | ( | cs_grid_t * | g, |
| int | verbosity, | ||
| int | n_max_ranks, | ||
| float | max_row_factor | ||
| ) |
| void cs_grid_merge_ranks | ( | cs_grid_t * | g, |
| int | merge_stride, | ||
| int | verbosity | ||
| ) |
| void cs_grid_project_row_num | ( | const cs_grid_t * | g, |
| cs_lnum_t | n_base_rows, | ||
| int | max_num, | ||
| int | c_row_num[] | ||
| ) |
| void cs_grid_project_row_rank | ( | const cs_grid_t * | g, |
| cs_lnum_t | n_base_rows, | ||
| int | f_row_rank[] | ||
| ) |
| void cs_grid_project_var | ( | const cs_grid_t * | g, |
| cs_lnum_t | n_base_rows, | ||
| const cs_real_t | c_var[], | ||
| cs_real_t | f_var[] | ||
| ) |
| void cs_grid_prolong_row_var | ( | cs_dispatch_context & | ctx, |
| const cs_grid_t * | c, | ||
| const cs_grid_t * | f, | ||
| bool | increment, | ||
| cs_real_t * | c_var, | ||
| cs_real_t * | f_var | ||
| ) |
| void cs_grid_restrict_row_var | ( | cs_dispatch_context & | ctx, |
| const cs_grid_t * | f, | ||
| const cs_grid_t * | c, | ||
| const cs_real_t * | f_var, | ||
| cs_real_t * | c_var | ||
| ) |
| void cs_grid_set_diag_dom_clip_factor | ( | double | factor | ) |
Set factor to ensure diagonal dominance.
| [in] | factor | clip margin factor (ignored if < 0). |
|
extern |