Base class for solver creators,. More...
#include <ISTLSolverCreator.hpp>
Inherits CreatorInterface< tag::solver< Traits > >.
Inherited by DirectSolverCreator< Solver, Traits >, and ISTLIterativeSolverCreatorBase< Traits >.
Public Member Functions | |
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 Attributes | |
int | info_ = 0 |
Base class for solver creators,.
Initfile parameters:
[SOLVER]->info
: Information level [0]
|
inlinevirtual |
Prepare the solver for the creation.
Reimplemented in ISTLIterativeSolverCreatorBase< Traits >, 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 >, PCGSolverCreator< Dune::RestartedFCGSolver< X >, Traits >, and DirectSolverCreator< Solver, Traits >.
References Initfile::get(), and Environment::mpiRank().
Referenced by ISTLIterativeSolverCreatorBase< Traits >::init(), and DirectSolverCreator< Solver, Traits >::init().