Base class for precon creators,. More...
#include <ISTLPreconCreator.hpp>
Inherits CreatorInterface< tag::preconditioner< Traits > >.
Inherited by AMGPreconCreator< AMGSolver, Traits >, ISTLPreconCreator< Precon, Traits >, ISTLPreconCreator< Dune::ParSSOR< M, X, Y, Comm >, Traits >, ISTLPreconCreator< Dune::Richardson< X, Y >, Traits >, ISTLPreconCreator< Dune::SeqILDL< M, X, Y >, Traits >, ISTLPreconCreator< tag::bjacobi, Traits >, and ISTLPreconCreator< tag::solver< Traits >, Traits >.
Public Member Functions | |
virtual void | init (std::string const &prefix) |
Prepare the preconditioner for the creation. More... | |
virtual std::unique_ptr< Dune::Preconditioner< X, Y > > | createPrecon (typename Traits::M const &A, typename Traits::Comm const &comm) const =0 |
virtual std::unique_ptr< tag::preconditioner< Traits > > | create ()=0 |
Must be implemented by sub classes of CreatorInterface. Creates a new instance of the sub class of BaseClass. | |
Protected Attributes | |
double | w_ = 1.0 |
int | iter_ = 1 |
Base class for precon creators,.
Initfile parameters:
[PRECON]->relaxation
: Dumping/relaxation factor[PRECON]->iterations
: Number of iterations the precon is applied.
|
inlinevirtual |
Prepare the preconditioner for the creation.
Reimplemented in AMGPreconCreator< AMGSolver, Traits >, ISTLPreconCreator< tag::solver< Traits >, Traits >, and ISTLPreconCreator< tag::bjacobi, Traits >.
References Initfile::get().