DUNE PDELab (2.7)

Dune::PDELab::ISTLBackend_SEQ_AMG_4_DG< DGGO, CGGFS, TransferLOP, DGPrec, Solver > Class Template Reference

#include <dune/pdelab/backend/istl/seq_amg_dg_backend.hh>

Public Member Functions

V::ElementType norm (const V &v) const
 compute global norm of a vector More...
 
void setParameters (const Parameters &amg_parameters_)
 set AMG parameters More...
 
const Parametersparameters () const
 Get the parameters describing the behaviuour of AMG. More...
 
void setReuse (bool reuse_)
 Set whether the AMG should be reused again during call to apply().
 
bool getReuse () const
 Return whether the AMG is reused during call to apply()
 
void apply (M &A, V &z, V &r, typename Dune::template FieldTraits< typename V::ElementType >::real_type reduction)
 solve the given linear system More...
 
const Dune::PDELab::LinearSolverResult< double > & result () const
 Return access to result data.
 

Detailed Description

template<class DGGO, class CGGFS, class TransferLOP, template< class, class, class, int > class DGPrec, template< class > class Solver>
class Dune::PDELab::ISTLBackend_SEQ_AMG_4_DG< DGGO, CGGFS, TransferLOP, DGPrec, Solver >

Sequential solver backend for using AMG for DG in PDELab

The template parameters are: DGGO GridOperator for DG discretization, allows access to matrix, vector and grid function space CGGFS grid function space for CG subspace DGPrec preconditioner for DG problem Solver solver to be used on the complete problem

Member Function Documentation

◆ apply()

template<class DGGO , class CGGFS , class TransferLOP , template< class, class, class, int > class DGPrec, template< class > class Solver>
void Dune::PDELab::ISTLBackend_SEQ_AMG_4_DG< DGGO, CGGFS, TransferLOP, DGPrec, Solver >::apply ( M &  A,
V &  z,
V &  r,
typename Dune::template FieldTraits< typename V::ElementType >::real_type  reduction 
)
inline

solve the given linear system

Parameters
[in]Athe given matrix
[out]zthe solution vector to be computed
[in]rright hand side
[in]reductionto be achieved

◆ norm()

template<class DGGO , class CGGFS , class TransferLOP , template< class, class, class, int > class DGPrec, template< class > class Solver>
V::ElementType Dune::PDELab::ISTLBackend_SEQ_AMG_4_DG< DGGO, CGGFS, TransferLOP, DGPrec, Solver >::norm ( const V &  v) const
inline

compute global norm of a vector

Parameters
[in]vthe given vector

◆ parameters()

template<class DGGO , class CGGFS , class TransferLOP , template< class, class, class, int > class DGPrec, template< class > class Solver>
const Parameters & Dune::PDELab::ISTLBackend_SEQ_AMG_4_DG< DGGO, CGGFS, TransferLOP, DGPrec, Solver >::parameters ( ) const
inline

Get the parameters describing the behaviuour of AMG.

The returned object can be adjusted to ones needs and then can be reset using setParameters.

Returns
The object holding the parameters of AMG.

◆ setParameters()

template<class DGGO , class CGGFS , class TransferLOP , template< class, class, class, int > class DGPrec, template< class > class Solver>
void Dune::PDELab::ISTLBackend_SEQ_AMG_4_DG< DGGO, CGGFS, TransferLOP, DGPrec, Solver >::setParameters ( const Parameters amg_parameters_)
inline

set AMG parameters

Parameters
[in]amg_parameters_a parameter object of Type Dune::Amg::Parameters

The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Jul 15, 22:36, 2024)