![]() |
Reference documentation for deal.II version 9.5.1
|
#include <deal.II/lac/trilinos_solver.h>
Classes | |
| struct | AdditionalData |
Public Types | |
| enum | SolverName { cg , gmres } |
Public Member Functions | |
| SolverBelos (SolverControl &solver_control, const AdditionalData &additional_data, const Teuchos::RCP< Teuchos::ParameterList > &belos_parameters) | |
| template<typename OperatorType , typename PreconditionerType > | |
| void | solve (const OperatorType &a, VectorType &x, const VectorType &b, const PreconditionerType &p) |
Public Attributes | |
| enum TrilinosWrappers::SolverBelos::SolverName | solver_name |
Private Attributes | |
| SolverControl & | solver_control |
| const AdditionalData | additional_data |
| const Teuchos::RCP< Teuchos::ParameterList > & | belos_parameters |
Wrapper around the iterate solver package from the Belos package (https://docs.trilinos.org/latest-release/packages/belos/doc/html/index.html), targeting deal.II data structures.
Definition at line 654 of file trilinos_solver.h.
| enum TrilinosWrappers::SolverBelos::SolverName |
Enumeration object that Trilinos which solver to use. Currently enabled options are:
| Enumerator | |
|---|---|
| cg | Use the conjugate gradient (CG) algorithm. |
| gmres | Use the generalized minimum residual (GMRES) algorithm. |
Definition at line 661 of file trilinos_solver.h.
| TrilinosWrappers::SolverBelos< VectorType >::SolverBelos | ( | SolverControl & | solver_control, |
| const AdditionalData & | additional_data, | ||
| const Teuchos::RCP< Teuchos::ParameterList > & | belos_parameters | ||
| ) |
Constructor.
| void TrilinosWrappers::SolverBelos< VectorType >::solve | ( | const OperatorType & | a, |
| VectorType & | x, | ||
| const VectorType & | b, | ||
| const PreconditionerType & | p | ||
| ) |
Solve the linear system Ax=b with a given preconditioner.
| enum TrilinosWrappers::SolverBelos::SolverName TrilinosWrappers::SolverBelos< VectorType >::solver_name |
|
private |
Definition at line 718 of file trilinos_solver.h.
|
private |
Definition at line 719 of file trilinos_solver.h.
|
private |
Definition at line 720 of file trilinos_solver.h.