1 #ifndef __CS_PARAM_SLES_H__
2 #define __CS_PARAM_SLES_H__
301 const char *system_name);
413 #if defined(HAVE_PETSC)
426 cs_param_sles_petsc_cmd(
bool use_prefix,
#define BEGIN_C_DECLS
Definition: cs_defs.h:509
#define END_C_DECLS
Definition: cs_defs.h:510
cs_param_sles_class_t cs_param_sles_get_class_from_amg(cs_param_amg_type_t amg_type)
Retrieve the related solver class from the amg type.
Definition: cs_param_sles.c:2918
static bool cs_param_sles_is_mumps_set(cs_param_itsol_type_t solver)
Find if a MUMPS-related solver is set or not.
Definition: cs_param_sles.h:212
void cs_param_sles_check_amg(cs_param_sles_t *slesp)
Check if the setting related to the AMG is consistent with the solver class.
Definition: cs_param_sles.c:3017
cs_param_sles_saddle_t * cs_param_sles_saddle_create(void)
Create a cs_param_sles_saddle_t structure and assign a minimalist default settings.
Definition: cs_param_sles.c:2423
cs_param_sles_class_t cs_param_sles_check_class(cs_param_sles_class_t wanted_class)
Check the availability of a solver library and return the requested one if this is possible or an alt...
Definition: cs_param_sles.c:2949
void cs_param_sles_update_cvg_settings(bool use_field_id, const cs_param_sles_t *slesp)
Update the settings associated to a cs_sles_t structure and apply those defined in the given cs_param...
Definition: cs_param_sles.c:2819
void cs_param_sles_free(cs_param_sles_t **p_slesp)
Free a cs_param_sles_t structure.
Definition: cs_param_sles.c:2601
cs_param_sles_t * cs_param_sles_create(int field_id, const char *system_name)
Create a cs_param_sles_t structure and assign a default settings.
Definition: cs_param_sles.c:2555
int cs_param_sles_set(bool use_field_id, cs_param_sles_t *slesp)
Define cs_sles_t structure in accordance with the settings of a cs_param_sles_t structure (SLES = Spa...
Definition: cs_param_sles.c:2742
void cs_param_sles_saddle_copy(const cs_param_sles_saddle_t *ref, cs_param_sles_saddle_t *dest)
Copy a cs_param_sles_saddle_t structure from ref to dest.
Definition: cs_param_sles.c:2494
void cs_param_sles_saddle_init_schur(const char *basename, cs_param_sles_saddle_t *saddlep)
Initialize a cs_param_sles_t structure for the Schur approximation nested inside a ref cs_param_sles_...
Definition: cs_param_sles.c:2458
void cs_param_sles_log(cs_param_sles_t *slesp)
Log information related to the linear settings stored in the structure.
Definition: cs_param_sles.c:2626
void cs_param_sles_copy_from(cs_param_sles_t *src, cs_param_sles_t *dst)
Copy a cs_param_sles_t structure from src to dst.
Definition: cs_param_sles.c:2704
void cs_param_sles_saddle_free(cs_param_sles_saddle_t **p_saddlep)
Free the structure storing the parameter settings for a saddle-point system.
Definition: cs_param_sles.c:2529
cs_param_resnorm_type_t
Definition: cs_param_types.h:1074
cs_param_saddle_solver_t
Type of solver used to solve a saddle-point system. Up to now, this happens only with CDO cell-based ...
Definition: cs_param_types.h:697
cs_param_precond_type_t
Definition: cs_param_types.h:919
cs_param_sles_class_t
Class of iterative solvers to consider for solver the linear system.
Definition: cs_param_types.h:585
cs_param_precond_block_t
Definition: cs_param_types.h:818
cs_param_itsol_type_t
Definition: cs_param_types.h:1037
@ CS_PARAM_ITSOL_MUMPS_FLOAT_LDLT
Definition: cs_param_types.h:1057
@ CS_PARAM_ITSOL_MUMPS_FLOAT
Definition: cs_param_types.h:1056
@ CS_PARAM_ITSOL_MUMPS_SYM
Definition: cs_param_types.h:1060
@ CS_PARAM_ITSOL_MUMPS
Definition: cs_param_types.h:1055
@ CS_PARAM_ITSOL_MUMPS_LDLT
Definition: cs_param_types.h:1059
@ CS_PARAM_ITSOL_MUMPS_FLOAT_SYM
Definition: cs_param_types.h:1058
cs_param_saddle_precond_t
Type of preconditioner used to solve a saddle-point system. Up to now, this happens only with CDO cel...
Definition: cs_param_types.h:655
cs_param_schur_approx_t
Strategy to build the Schur complement approximation. This appears in block preconditioning or Uzawa ...
Definition: cs_param_types.h:752
cs_param_amg_type_t
Definition: cs_param_types.h:603
Set of parameters to check the convergence (or the divergence) of an iterative process (tolerances or...
Definition: cs_param_sles.h:61
double atol
Definition: cs_param_sles.h:78
double dtol
Definition: cs_param_sles.h:80
int n_max_iter
Definition: cs_param_sles.h:81
double rtol
Definition: cs_param_sles.h:79
Structure storing all metadata related to the resolution of a saddle-point linear system.
Definition: cs_param_sles.h:133
cs_param_sles_cvg_t cvg_param
Definition: cs_param_sles.h:168
cs_param_saddle_precond_t precond
Definition: cs_param_sles.h:159
cs_param_sles_t * schur_sles_param
Definition: cs_param_sles.h:187
cs_param_saddle_solver_t solver
Definition: cs_param_sles.h:152
cs_param_schur_approx_t schur_approximation
Definition: cs_param_sles.h:180
int verbosity
Definition: cs_param_sles.h:139
Structure storing all metadata related to the resolution of a linear system with an iterative solver.
Definition: cs_param_sles.h:91
cs_param_sles_cvg_t cvg_param
Definition: cs_param_sles.h:123
int field_id
Definition: cs_param_sles.h:94
int verbosity
Definition: cs_param_sles.h:96
char * name
Definition: cs_param_sles.h:93
cs_param_resnorm_type_t resnorm_type
Definition: cs_param_sles.h:116
cs_param_itsol_type_t solver
Definition: cs_param_sles.h:101
cs_param_precond_type_t precond
Definition: cs_param_sles.h:100
int restart
Definition: cs_param_sles.h:103
cs_param_sles_class_t solver_class
Definition: cs_param_sles.h:99
bool setup_done
Definition: cs_param_sles.h:97
cs_param_amg_type_t amg_type
Definition: cs_param_sles.h:104
bool flexible
Definition: cs_param_sles.h:102
cs_param_precond_block_t pcd_block_type
Definition: cs_param_sles.h:110