Solver creator for iterative GMRes-like solvers. More...
#include <ISTLSolverCreator.hpp>
Inherits ISTLIterativeSolverCreatorBase< Traits >.
Public Types | |
using | Super = ISTLIterativeSolverCreatorBase< Traits > |
using | Interface = typename Traits::Solver |
Public Member Functions | |
void | init (std::string const &prefix) override |
Prepare the solver for the creation. More... | |
std::unique_ptr< Interface > | createSolver (typename Traits::M const &mat, typename Traits::Comm const &comm) const override |
void | init (std::string const &prefix) override |
Prepare the solver for the creation. More... | |
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. | |
Additional Inherited Members | |
Protected Member Functions inherited from ISTLIterativeSolverCreatorBase< Traits > | |
template<class Solver , class... Args> | |
auto | create_impl (typename Traits::M const &mat, typename Traits::Comm const &comm, Args &&... args) const |
Protected Attributes inherited from ISTLIterativeSolverCreatorBase< Traits > | |
int | maxIter_ = 500 |
real_type | rTol_ = 1.e-6 |
ISTLPreconCreatorBase< Traits > * | preconCreator_ = nullptr |
Protected Attributes inherited from ISTLSolverCreatorBase< Traits > | |
int | info_ = 0 |
Solver creator for iterative GMRes-like solvers.
Constructs a linear solver, using the constructor signature Solver(LinOp, ScalarProd, Precon, rTol, restart, maxIter, info)
Initfile parameters:
[SOLVER]->restart
: Restart parameter for restarted GMRes solvers [30]
|
inlineoverridevirtual |
Implements ISTLSolverCreatorBase< Traits >.
|
inlineoverridevirtual |
Prepare the solver for the creation.
Reimplemented from ISTLIterativeSolverCreatorBase< Traits >.
References Initfile::get().