Structure and routines handling the SLES settings stored inside a cs_param_sles_t structure.
More...
Go to the source code of this file.
|
struct | cs_param_sles_t |
| Structure storing all metadata related to the resolution of a linear system with an iterative solver. More...
|
|
Structure and routines handling the SLES settings stored inside a cs_param_sles_t structure.
◆ cs_param_sles_check_class()
Check the availability of a solver library and return the requested one if this is possible or an alternative or CS_PARAM_SLES_N_CLASSES if no alternative is available.
- Parameters
-
[in] | wanted_class | requested class of solvers |
- Returns
- the available solver class related to the requested class
◆ cs_param_sles_copy_from()
Copy a cs_param_sles_t structure from src to dst.
- Parameters
-
[in] | src | reference cs_param_sles_t structure to copy |
[in,out] | dst | copy of the reference at exit |
◆ cs_param_sles_create()
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.
- Parameters
-
[in] | field_id | id related to to the variable field or -1 |
[in] | system_name | name of the system to solve or NULL |
- Returns
- a pointer to a cs_param_sles_t stucture
◆ cs_param_sles_free()
Free a cs_param_sles_t structure.
- Parameters
-
[in,out] | slesp | pointer to a structure to free |
◆ cs_param_sles_log()
Log information related to the linear settings stored in the structure.
- Parameters
-
◆ cs_param_sles_set()
Define cs_sles_t structure in accordance with the settings of a cs_param_sles_t structure (SLES = Sparse Linear Equation Solver)
- Parameters
-
[in] | use_field_id | if false use system name to define a SLES |
[in,out] | slesp | pointer to a cs_param_sles_t structure |
- Returns
- an error code (-1 if a problem is encountered, 0 otherwise)