5 #ifndef DUNE_ISTL_PRECONDITIONER_HH 6 #define DUNE_ISTL_PRECONDITIONER_HH 8 #include <dune-istl-config.hh> 9 #include <dune/common/exceptions.hh> 32 template<
class X,
class Y>
70 virtual void pre (X& x, Y& b) = 0;
82 virtual void apply (X& v,
const Y& d) = 0;
92 virtual void post (X& x) = 0;
96 #if DUNE_ISTL_SUPPORT_OLD_CATEGORY_INTERFACE 98 DUNE_THROW(Dune::Exception,
"It is necessary to implement the category method in a derived classes, in the future this method will pure virtual.");
X::field_type field_type
The field type of the preconditioner.
Definition: preconditioner.hh:40
Base class for matrix free definition of preconditioners.
Definition: preconditioner.hh:33
Y range_type
The range type of the preconditioner.
Definition: preconditioner.hh:38
virtual SolverCategory::Category category() const =0
Category of the preconditioner (see SolverCategory::Category)
virtual void pre(X &x, Y &b)=0
Prepare the preconditioner.
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:105
virtual void post(X &x)=0
Clean up.
X domain_type
The domain type of the preconditioner.
Definition: preconditioner.hh:36
Category
Definition: solvercategory.hh:23
Definition: allocator.hh:11