Dune Core Modules (2.9.1)
Dune::SolverFactory< Operator > Class Template Reference
Factory to assembly solvers configured by a ParameterTree
.
More...
#include <dune/istl/solverfactory.hh>
Static Public Member Functions | |
static std::shared_ptr< Solver > | get (std::shared_ptr< Operator > op, const ParameterTree &config, std::shared_ptr< Preconditioner > prec=nullptr) |
get a solver from the factory | |
static std::shared_ptr< Preconditioner > | getPreconditioner (std::shared_ptr< Operator > op, const ParameterTree &config) |
Construct a Preconditioner for a given Operator. | |
Detailed Description
template<class Operator>
class Dune::SolverFactory< Operator >
class Dune::SolverFactory< Operator >
Factory to assembly solvers configured by a ParameterTree
.
Example ini File that can be passed in to construct a CGSolver with a SSOR preconditioner:
type = cgsolver verbose = 1 maxit = 1000 reduction = 1e-5 [preconditioner] type = ssor iterations = 1 relaxation = 1
- Template Parameters
-
Operator type of the operator, necessary to deduce the matrix type etc.
The documentation for this class was generated from the following file:
- dune/istl/solverfactory.hh
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Nov 20, 23:30, 2024)