Dune Core Modules (unstable)

ISTL_Factory

Classes

class  Dune::NoAssembledOperator
 This exception is thrown if the requested solver or preconditioner needs an assembled matrix. More...
 

Functions

template<class Operator >
std::shared_ptr< InverseOperator< typename Operator::domain_type, typename Operator::range_type > > Dune::getSolverFromFactory (std::shared_ptr< Operator > op, const ParameterTree &config, std::shared_ptr< Preconditioner< typename Operator::domain_type, typename Operator::range_type > > prec=nullptr)
 Instantiates an InverseOperator from an Operator and a configuration given as a ParameterTree. More...
 
template<class Operator >
std::shared_ptr< Preconditioner< typename Operator::domain_type, typename Operator::range_type > > Dune::getPreconditionerFromFactory (std::shared_ptr< Operator > op, const ParameterTree &config)
 Construct a Preconditioner for a given Operator.
 

Detailed Description

Function Documentation

◆ getSolverFromFactory()

template<class Operator >
std::shared_ptr< InverseOperator< typename Operator::domain_type, typename Operator::range_type > > Dune::getSolverFromFactory ( std::shared_ptr< Operator >  op,
const ParameterTree config,
std::shared_ptr< Preconditioner< typename Operator::domain_type, typename Operator::range_type > >  prec = nullptr 
)

Instantiates an InverseOperator from an Operator and a configuration given as a ParameterTree.

Parameters
opOperator
configParameterTree with configuration

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.

References Dune::ParameterTree::get(), Dune::Singleton< T >::instance(), and Dune::ParameterTree::sub().

Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 21, 23:30, 2024)