#include "cs_defs.h"#include <assert.h>#include <stdio.h>#include <string.h>#include <bft_error.h>#include <bft_mem.h>#include "cs_base.h"#include "cs_log.h"#include "cs_param_amg.h"Functions | |
| const char * | cs_param_amg_get_type_name (cs_param_amg_type_t type) |
| Get the name of the type of algebraic multigrid (AMG) | |
| cs_param_solver_class_t | cs_param_amg_get_class (cs_param_amg_type_t amg_type) |
| Retrieve the related solver class from the amg type. | |
| cs_param_amg_boomer_t * | cs_param_amg_boomer_create (void) |
| Create a new structure storing a set of parameters used when calling boomerAMG. Set default values for all parameters. | |
| cs_param_amg_boomer_t * | cs_param_amg_boomer_copy (const cs_param_amg_boomer_t *bamgp) |
| Copy the given set of parameters used when calling boomerAMG into a new structure. | |
| const char * | cs_param_amg_get_boomer_smoother_name (cs_param_amg_boomer_smoother_t smoother) |
| Get the name of the smoother used with BoomerAMG (HYPRE library) | |
| void | cs_param_amg_boomer_log (const char *name, const cs_param_amg_boomer_t *bamgp) |
| Log the set of parameters used for setting BoomerAMG. | |
| cs_param_amg_gamg_t * | cs_param_amg_gamg_create (void) |
| Create a new structure storing a set of parameters used when calling GAMG. Set default values for all parameters. | |
| cs_param_amg_gamg_t * | cs_param_amg_gamg_copy (const cs_param_amg_gamg_t *gamgp) |
| Copy the given set of parameters used when calling GAMG into a new structure. | |
| const char * | cs_param_amg_get_gamg_smoother_name (cs_param_amg_gamg_smoother_t smoother) |
| Get the name of the smoother used with GAMG (PETSc library) | |
| const char * | cs_param_amg_get_gamg_coarse_solver_name (cs_param_amg_gamg_coarse_solver_t coarse) |
| Get the name of the smoother used with GAMG (PETSc library) | |
| void | cs_param_amg_gamg_log (const char *name, const cs_param_amg_gamg_t *gamgp) |
| Log the set of parameters used for setting GAMG. | |
| cs_param_amg_hmg_t * | cs_param_amg_hmg_create (void) |
| Create a new structure storing a set of parameters used when calling HMG. Set all parameters at their default value. | |
| cs_param_amg_hmg_t * | cs_param_amg_hmg_copy (const cs_param_amg_hmg_t *hmgp) |
| Copy the given set of parameters used when calling HMG into a new structure. | |
| void | cs_param_amg_hmg_log (const char *name, const cs_param_amg_hmg_t *hmgp) |
| Log the set of parameters used for setting HMG. | |
| cs_param_amg_inhouse_t * | cs_param_amg_inhouse_create (bool used_as_solver, bool used_as_k_cycle) |
| Create a new structure storing a set of parameters used when calling the in-house AMG algo. Set default values for all parameters. | |
| cs_param_amg_inhouse_t * | cs_param_amg_inhouse_copy (const cs_param_amg_inhouse_t *amgp) |
| Copy the given set of parameters used when calling in-house AMG algo. into a new structure. | |
| const char * | cs_param_amg_get_inhouse_solver_name (cs_param_amg_inhouse_solver_t solver) |
| Get the name of the solver used with in-house AMG algo. | |
| void | cs_param_amg_inhouse_log (const char *name, const cs_param_amg_inhouse_t *amgp) |
| Log the set of parameters used for setting in-house AMG algorithms. | |
| cs_param_amg_boomer_t * cs_param_amg_boomer_copy | ( | const cs_param_amg_boomer_t * | bamgp | ) |
Copy the given set of parameters used when calling boomerAMG into a new structure.
| [in] | bamgp | reference set of boomerAMG parameters |
| cs_param_amg_boomer_t * cs_param_amg_boomer_create | ( | void | ) |
Create a new structure storing a set of parameters used when calling boomerAMG. Set default values for all parameters.
| void cs_param_amg_boomer_log | ( | const char * | name, |
| const cs_param_amg_boomer_t * | bamgp ) |
Log the set of parameters used for setting BoomerAMG.
| [in] | name | name related to the current SLES |
| [in] | bamgp | set of boomerAMG parameters |
| cs_param_amg_gamg_t * cs_param_amg_gamg_copy | ( | const cs_param_amg_gamg_t * | gamgp | ) |
Copy the given set of parameters used when calling GAMG into a new structure.
| [in] | gamgp | reference set of GAMG parameters |
| cs_param_amg_gamg_t * cs_param_amg_gamg_create | ( | void | ) |
Create a new structure storing a set of parameters used when calling GAMG. Set default values for all parameters.
| void cs_param_amg_gamg_log | ( | const char * | name, |
| const cs_param_amg_gamg_t * | gamgp ) |
Log the set of parameters used for setting GAMG.
| [in] | name | name related to the current SLES |
| [in] | gamgp | set of gamgAMG parameters |
| const char * cs_param_amg_get_boomer_smoother_name | ( | cs_param_amg_boomer_smoother_t | smoother | ) |
Get the name of the smoother used with BoomerAMG (HYPRE library)
| [in] | smoother | smoother type |
| cs_param_solver_class_t cs_param_amg_get_class | ( | cs_param_amg_type_t | amg_type | ) |
Retrieve the related solver class from the amg type.
| [in] | amg_type | type of AMG to consider |
| const char * cs_param_amg_get_gamg_coarse_solver_name | ( | cs_param_amg_gamg_coarse_solver_t | coarse | ) |
Get the name of the smoother used with GAMG (PETSc library)
| [in] | coarse | type of predefined coarse solver |
| const char * cs_param_amg_get_gamg_smoother_name | ( | cs_param_amg_gamg_smoother_t | smoother | ) |
Get the name of the smoother used with GAMG (PETSc library)
| [in] | smoother | smoother type |
| const char * cs_param_amg_get_inhouse_solver_name | ( | cs_param_amg_inhouse_solver_t | solver | ) |
Get the name of the solver used with in-house AMG algo.
| [in] | solver | solver type |
| const char * cs_param_amg_get_type_name | ( | cs_param_amg_type_t | type | ) |
Get the name of the type of algebraic multigrid (AMG)
| [in] | type | type of AMG |
| cs_param_amg_hmg_t * cs_param_amg_hmg_copy | ( | const cs_param_amg_hmg_t * | hmgp | ) |
Copy the given set of parameters used when calling HMG into a new structure.
| [in] | hmgp | reference set of HMG parameters |
| cs_param_amg_hmg_t * cs_param_amg_hmg_create | ( | void | ) |
Create a new structure storing a set of parameters used when calling HMG. Set all parameters at their default value.
| void cs_param_amg_hmg_log | ( | const char * | name, |
| const cs_param_amg_hmg_t * | hmgp ) |
Log the set of parameters used for setting HMG.
| [in] | name | name related to the current SLES |
| [in] | hmgp | set of hmgAMG parameters |
| cs_param_amg_inhouse_t * cs_param_amg_inhouse_copy | ( | const cs_param_amg_inhouse_t * | amgp | ) |
Copy the given set of parameters used when calling in-house AMG algo. into a new structure.
| [in] | amgp | reference set of in-house AMG parameters |
| cs_param_amg_inhouse_t * cs_param_amg_inhouse_create | ( | bool | used_as_solver, |
| bool | used_as_k_cycle ) |
Create a new structure storing a set of parameters used when calling the in-house AMG algo. Set default values for all parameters.
| [in] | used_as_solver | true or false |
| [in] | used_as_k_cycle | true or false |
| void cs_param_amg_inhouse_log | ( | const char * | name, |
| const cs_param_amg_inhouse_t * | amgp ) |
Log the set of parameters used for setting in-house AMG algorithms.
| [in] | name | name related to the current SLES |
| [in] | amgp | set of in-house AMG parameters |