DUNE PDELab (2.8)
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
![Creative Commons License](https://i.creativecommons.org/l/by-sa/4.0/80x15.png)