|
| ISTLBackend_SEQ_AMG_4_DG (DGGO &dggo_, CGGFS &cggfs_, unsigned maxiter_=5000, int verbose_=1, bool reuse_=false, bool usesuperlu_=true) |
|
| ISTLBackend_SEQ_AMG_4_DG (DGGO &dggo_, CGGFS &cggfs_, const ParameterTree ¶ms) |
|
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 Parameters & | parameters () 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(). More...
|
|
bool | getReuse () const |
| Return whether the AMG is reused during call to apply() More...
|
|
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. More...
|
|
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
template<class DGGO , class CGGFS , class TransferLOP , template< class, class, class, int > class DGPrec, template< class > class Solver>
template<class DGGO , class CGGFS , class TransferLOP , template< class, class, class, int > class DGPrec, template< class > class Solver>
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] | A | the given matrix |
[out] | z | the solution vector to be computed |
[in] | r | right hand side |
[in] | reduction | to be achieved |
References Dune::PDELab::Backend::native().
template<class DGGO , class CGGFS , class TransferLOP , template< class, class, class, int > class DGPrec, template< class > class Solver>
template<class DGGO , class CGGFS , class TransferLOP , template< class, class, class, int > class DGPrec, template< class > class Solver>
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.