KASKADE 7 development version
Loading...
Searching...
No Matches
MultigridSolver< Grd, domain_type > Class Template Reference

#include <multiGridStacks.hh>

Public Member Functions

 MultigridSolver (const ProlongationStack< Grd > &prolongations, const MlStack< Grd > &levelMatrices, double relax, double mgIter, double mgSmoothings, double maxTol)
void mgSolve (domain_type &solution, domain_type &rightHand)

Detailed Description

template<class Grd, class domain_type>
class MultigridSolver< Grd, domain_type >

MultigridSolver realizes a classical v-cycle multigrid solver

yet truncation criterion is relative defect tolerance ||Ax-b||_2/||b||_2 < maxTol

example usage:

ProlongationStack<Dune::UGGrid<dim> > ps( gridManager.grid() ); MlStack<Dune::UGGrid<dim> > myStack( ps , bcrsMatrix ); MultigridSolver<Grid> MGSolver( ps , myStack , JacobiRelaxFactor , maxIter , mgSmoothings, maxTol ); MGSolver.mgSolve( solution , rhs );

Definition at line 374 of file multiGridStacks.hh.

Constructor & Destructor Documentation

◆ MultigridSolver()

template<class Grd, class domain_type>
MultigridSolver< Grd, domain_type >::MultigridSolver ( const ProlongationStack< Grd > & prolongations,
const MlStack< Grd > & levelMatrices,
double relax,
double mgIter,
double mgSmoothings,
double maxTol )

Definition at line 399 of file multiGridStacks.hh.

Member Function Documentation

◆ mgSolve()

template<class Grd, class domain_type>
void MultigridSolver< Grd, domain_type >::mgSolve ( domain_type & solution,
domain_type & rightHand )

Definition at line 417 of file multiGridStacks.hh.


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