KASKADE 7 development version
Public Member Functions | List of all members
MultigridSolver< Grd, domain_type > Class Template Reference

#include <multiGridStacks.hh>

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 375 of file 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)
 

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 400 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 418 of file multiGridStacks.hh.


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