Sequential conjugate gradient solver preconditioned with AMG smoothed by SSOR.
More...
#include <dune/pdelab/backend/istl/seqistlsolverbackend.hh>
template<class GO>
class Dune::PDELab::ISTLBackend_SEQ_CG_AMG_SSOR< GO >
Sequential conjugate gradient solver preconditioned with AMG smoothed by SSOR.
- Template Parameters
-
GO | The type of the grid operator (or the fakeGOTraits class for the old grid operator space). |
- Examples
- recipe-geometry-grid.cc, and recipe-linear-system-solution-pdelab.cc.
◆ ISTLBackend_SEQ_CG_AMG_SSOR()
Constructor.
- Parameters
-
maxiter_ | The maximum number of iterations allowed. |
verbose_ | The verbosity level to use. |
reuse_ | Set true, if the Matrix to be used is always identical (AMG aggregation is then only performed once). |
usesuperlu_ | Set false, to suppress the no SuperLU warning |
◆ apply()
void Dune::PDELab::ISTLBackend_SEQ_AMG< GO, Dune::SeqSSOR , Dune::CGSolver , false >::apply |
( |
M & |
A, |
|
|
V & |
z, |
|
|
V & |
r, |
|
|
typename Dune::template FieldTraits< typename V::ElementType >::real_type |
reduction |
|
) |
| |
|
inlineinherited |
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 |
◆ getReuse()
Return whether the AMG is reused during call to apply()
◆ norm()
compute global norm of a vector
- Parameters
-
◆ result()
Return access to result data.
◆ setparams()
set AMG parameters
- Parameters
-
[in] | params_ | a parameter object of Type Dune::Amg::Parameters |
◆ setReuse()
Set whether the AMG should be reused again during call to apply().
◆ statistics()
Get statistics of the AMG solver (no of levels, timings).
- Returns
- statistis of the AMG solver.
◆ res
The documentation for this class was generated from the following file: