5#ifndef DUNE_ISTL_PRECONDITIONER_HH
6#define DUNE_ISTL_PRECONDITIONER_HH
8#include <dune/common/exceptions.hh>
31 template<
class X,
class Y>
69 virtual void pre (X& x, Y& b) = 0;
81 virtual void apply (X& v,
const Y& d) = 0;
91 virtual void post (X& x) = 0;
95#if DUNE_ISTL_SUPPORT_OLD_CATEGORY_INTERFACE
97 DUNE_THROW(Dune::Exception,
"It is necessary to implement the category method in a derived classes, in the future this method will pure virtual.");
Definition: allocator.hh:11
Base class for matrix free definition of preconditioners.
Definition: preconditioner.hh:32
virtual void post(X &x)=0
Clean up.
virtual void apply(X &v, const Y &d)=0
Apply one step of the preconditioner to the system A(v)=d.
virtual ~Preconditioner()
every abstract base class has a virtual destructor
Definition: preconditioner.hh:104
Y range_type
The range type of the preconditioner.
Definition: preconditioner.hh:37
X domain_type
The domain type of the preconditioner.
Definition: preconditioner.hh:35
virtual SolverCategory::Category category() const =0
Category of the preconditioner (see SolverCategory::Category)
X::field_type field_type
The field type of the preconditioner.
Definition: preconditioner.hh:39
virtual void pre(X &x, Y &b)=0
Prepare the preconditioner.
Category
Definition: solvercategory.hh:23