Reference documentation for deal.II version 9.5.1
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Public Attributes | Private Attributes | List of all members
TrilinosWrappers::SolverBelos< VectorType > Class Template Reference

#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

SolverControlsolver_control
 
const AdditionalData additional_data
 
const Teuchos::RCP< Teuchos::ParameterList > & belos_parameters
 

Detailed Description

template<typename VectorType>
class TrilinosWrappers::SolverBelos< VectorType >

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.

Member Enumeration Documentation

◆ SolverName

template<typename VectorType >
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.

Constructor & Destructor Documentation

◆ SolverBelos()

template<typename VectorType >
TrilinosWrappers::SolverBelos< VectorType >::SolverBelos ( SolverControl solver_control,
const AdditionalData additional_data,
const Teuchos::RCP< Teuchos::ParameterList > &  belos_parameters 
)

Constructor.

Member Function Documentation

◆ solve()

template<typename VectorType >
template<typename OperatorType , typename PreconditionerType >
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.

Member Data Documentation

◆ solver_name

template<typename VectorType >
enum TrilinosWrappers::SolverBelos::SolverName TrilinosWrappers::SolverBelos< VectorType >::solver_name

◆ solver_control

template<typename VectorType >
SolverControl& TrilinosWrappers::SolverBelos< VectorType >::solver_control
private

Definition at line 718 of file trilinos_solver.h.

◆ additional_data

template<typename VectorType >
const AdditionalData TrilinosWrappers::SolverBelos< VectorType >::additional_data
private

Definition at line 719 of file trilinos_solver.h.

◆ belos_parameters

template<typename VectorType >
const Teuchos::RCP<Teuchos::ParameterList>& TrilinosWrappers::SolverBelos< VectorType >::belos_parameters
private

Definition at line 720 of file trilinos_solver.h.


The documentation for this class was generated from the following file: