Base solver creator for iterative solvers. More...
#include <ISTLSolverCreator.hpp>
Inherits ISTLSolverCreatorBase< Traits >.
Inherited by GMResSolverCreator< Dune::RestartedFlexibleGMResSolver< X, Y >, Traits >, GMResSolverCreator< Dune::RestartedGMResSolver< X, Y >, Traits >, PCGSolverCreator< Dune::CompleteFCGSolver< X >, Traits >, PCGSolverCreator< Dune::GeneralizedPCGSolver< X >, Traits >, PCGSolverCreator< Dune::RestartedFCGSolver< X >, Traits >, GMResSolverCreator< Solver, Traits >, IterativeSolverCreator< M, X, Y, IterativeSolver >, and PCGSolverCreator< Solver, Traits >.
Public Member Functions | |
void | init (std::string const &prefix) override |
Prepare the solver for the creation. More... | |
Public Member Functions inherited from ISTLSolverCreatorBase< Traits > | |
virtual void | init (std::string const &prefix) |
Prepare the solver for the creation. More... | |
virtual std::unique_ptr< Dune::InverseOperator< X, Y > > | createSolver (typename Traits::M const &A, typename Traits::Comm const &comm) const =0 |
virtual std::unique_ptr< tag::solver< Traits > > | create ()=0 |
Must be implemented by sub classes of CreatorInterface. Creates a new instance of the sub class of BaseClass. | |
Protected Member Functions | |
template<class Solver , class... Args> | |
auto | create_impl (typename Traits::M const &mat, typename Traits::Comm const &comm, Args &&... args) const |
Protected Attributes | |
int | maxIter_ = 500 |
real_type | rTol_ = 1.e-6 |
ISTLPreconCreatorBase< Traits > * | preconCreator_ = nullptr |
Protected Attributes inherited from ISTLSolverCreatorBase< Traits > | |
int | info_ = 0 |
Base solver creator for iterative solvers.
Provides and interface to constructs a linear solver.
Initfile parameters:
[SOLVER]->max iteration
: Maximal number of solver iterations [500][SOLVER]->relative tolerance
: Relative break tolerance [1.e-6][SOLVER]->precon
: Name of the preconditioner
|
inlineoverridevirtual |
Prepare the solver for the creation.
Reimplemented from ISTLSolverCreatorBase< Traits >.
Reimplemented in GMResSolverCreator< Solver, Traits >, GMResSolverCreator< Dune::RestartedFlexibleGMResSolver< X, Y >, Traits >, GMResSolverCreator< Dune::RestartedGMResSolver< X, Y >, Traits >, PCGSolverCreator< Solver, Traits >, PCGSolverCreator< Dune::CompleteFCGSolver< X >, Traits >, PCGSolverCreator< Dune::GeneralizedPCGSolver< X >, Traits >, and PCGSolverCreator< Dune::RestartedFCGSolver< X >, Traits >.
References Initfile::get(), CreatorMap< BaseClass >::get(), and ISTLSolverCreatorBase< Traits >::init().
Referenced by PCGSolverCreator< Solver, Traits >::init().