Dune Core Modules (2.10.0)

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< Solverget (std::shared_ptr< Operator > op, const ParameterTree &config, std::shared_ptr< Preconditioner > prec=nullptr)
 get a solver from the factory
 
static std::shared_ptr< PreconditionergetPreconditioner (std::shared_ptr< Operator > op, const ParameterTree &config)
 Construct a Preconditioner for a given Operator.
 

Detailed Description

template<class 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
Operatortype of the operator, necessary to deduce the matrix type etc.

The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Dec 26, 23:30, 2024)