Dune Core Modules (unstable)
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
-
op Operator config ParameterTree
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
-
Operator type of the operator, necessary to deduce the matrix type etc.
References Dune::ParameterTree::get(), Dune::Singleton< T >::instance(), and Dune::ParameterTree::sub().
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Dec 21, 23:30, 2024)