Dune Core Modules (2.9.0)
preconditioners.hh
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
98 DUNE_THROW(InvalidStateException, "User-supplied solver category does not match that of the given inverse operator");
182 SeqSSOR (const std::shared_ptr<const AssembledLinearOperator<M,X,Y>>& A, const ParameterTree& configuration)
200 : SeqSSOR(A, configuration.get<int>("iterations",1), configuration.get<real_field_type>("relaxation",1.0))
302 SeqSOR (const std::shared_ptr<const AssembledLinearOperator<M,X,Y>>& A, const ParameterTree& configuration)
320 : SeqSOR(A, configuration.get<int>("iterations",1), configuration.get<real_field_type>("relaxation",1.0))
453 SeqJac (const std::shared_ptr<const AssembledLinearOperator<M,X,Y>>& A, const ParameterTree& configuration)
471 : SeqJac(A, configuration.get<int>("iterations",1), configuration.get<real_field_type>("relaxation",1.0))
580 SeqILU (const std::shared_ptr<const AssembledLinearOperator<M,X,Y>>& A, const ParameterTree& configuration)
787 DUNE_REGISTER_PRECONDITIONER("richardson", [](auto tl, const auto& /* mat */, const ParameterTree& config){
837 SeqILDL (const std::shared_ptr<const AssembledLinearOperator<M,X,Y>>& A, const ParameterTree& configuration)
893 for( auto row = decomposition_.begin(), rowend = decomposition_.end(); row != rowend; ++row, ++i )
A linear operator exporting itself in matrix form.
Definition: operators.hh:109
Default exception if a function was called while the object is not in a valid state for that function...
Definition: exceptions.hh:281
Turns an InverseOperator into a Preconditioner.
Definition: preconditioners.hh:75
O::range_type range_type
The range type of the preconditioner.
Definition: preconditioners.hh:80
O::domain_type domain_type
The domain type of the preconditioner.
Definition: preconditioners.hh:78
virtual void post(domain_type &)
Clean up.
Definition: preconditioners.hh:111
range_type::field_type field_type
The field type of the preconditioner.
Definition: preconditioners.hh:82
FieldTraits< scalar_field_type >::real_type real_field_type
real scalar type underlying the field_type
Definition: preconditioners.hh:86
Simd::Scalar< field_type > scalar_field_type
scalar type underlying the field_type
Definition: preconditioners.hh:84
virtual SolverCategory::Category category() const
Category of the preconditioner (see SolverCategory::Category)
Definition: preconditioners.hh:115
virtual void pre(domain_type &, range_type &)
Prepare the preconditioner.
Definition: preconditioners.hh:101
InverseOperator2Preconditioner(InverseOperator &inverse_operator)
Construct the preconditioner from the solver.
Definition: preconditioners.hh:94
O InverseOperator
type of the wrapped inverse operator
Definition: preconditioners.hh:88
virtual void apply(domain_type &v, const range_type &d)
Apply one step of the preconditioner to the system A(v)=d.
Definition: preconditioners.hh:104
Base class for matrix free definition of preconditioners.
Definition: preconditioner.hh:32
X::field_type field_type
The field type of the preconditioner.
Definition: preconditioners.hh:720
virtual SolverCategory::Category category() const
Category of the preconditioner (see SolverCategory::Category)
Definition: preconditioners.hh:778
Y range_type
The range type of the preconditioner.
Definition: preconditioners.hh:718
virtual void pre(X &x, Y &b)
Prepare the preconditioner.
Definition: preconditioners.hh:755
Richardson(real_field_type w=1.0)
Constructor.
Definition: preconditioners.hh:731
FieldTraits< scalar_field_type >::real_type real_field_type
real scalar type underlying the field_type
Definition: preconditioners.hh:724
Simd::Scalar< field_type > scalar_field_type
scalar type underlying the field_type
Definition: preconditioners.hh:722
Richardson(const ParameterTree &configuration)
Constructor.
Definition: preconditioners.hh:746
X domain_type
The domain type of the preconditioner.
Definition: preconditioners.hh:716
virtual void apply(X &v, const Y &d)
Apply the precondioner.
Definition: preconditioners.hh:763
SeqILDL(const matrix_type &A, const ParameterTree &config)
Constructor.
Definition: preconditioners.hh:853
SeqILDL(const matrix_type &A, real_field_type relax=real_field_type(1))
constructor
Definition: preconditioners.hh:865
X domain_type
domain type of the preconditioner
Definition: preconditioners.hh:815
Y range_type
range type of the preconditioner
Definition: preconditioners.hh:817
std::remove_const_t< M > matrix_type
type of matrix the preconditioner is for
Definition: preconditioners.hh:813
void apply(X &v, const Y &d) override
Apply one step of the preconditioner to the system A(v)=d.
Definition: preconditioners.hh:909
FieldTraits< scalar_field_type >::real_type real_field_type
real scalar type underlying the field_type
Definition: preconditioners.hh:823
SeqILDL(const std::shared_ptr< const AssembledLinearOperator< M, X, Y > > &A, const ParameterTree &configuration)
Constructor.
Definition: preconditioners.hh:837
void pre(X &x, Y &b) override
Prepare the preconditioner.
Definition: preconditioners.hh:905
Simd::Scalar< field_type > scalar_field_type
scalar type underlying the field_type
Definition: preconditioners.hh:821
X::field_type field_type
field type of the preconditioner
Definition: preconditioners.hh:819
SolverCategory::Category category() const override
Category of the preconditioner (see SolverCategory::Category)
Definition: preconditioners.hh:920
SeqILU(const M &A, int n, real_field_type w, const bool resort=false)
Constructor.
Definition: preconditioners.hh:612
virtual void pre(X &x, Y &b)
Prepare the preconditioner.
Definition: preconditioners.hh:648
virtual void apply(X &v, const Y &d)
Apply the preconditioner.
Definition: preconditioners.hh:656
ILU::CRS< block_type, typename M::allocator_type > CRS
type of ILU storage
Definition: preconditioners.hh:552
Y range_type
The range type of the preconditioner.
Definition: preconditioners.hh:541
CRS lower_
The ILU(n) decomposition of the matrix. As storage a CRS structure is used.
Definition: preconditioners.hh:692
const bool wNotIdentity_
true if w != 1.0
Definition: preconditioners.hh:699
SeqILU(const M &A, const ParameterTree &config)
Constructor.
Definition: preconditioners.hh:598
std::remove_const< M >::type matrix_type
The matrix type the preconditioner is for.
Definition: preconditioners.hh:535
matrix_type::block_type block_type
block type of matrix
Definition: preconditioners.hh:537
FieldTraits< scalar_field_type >::real_type real_field_type
real scalar type underlying the field_type
Definition: preconditioners.hh:549
X::field_type field_type
The field type of the preconditioner.
Definition: preconditioners.hh:544
virtual SolverCategory::Category category() const
Category of the preconditioner (see SolverCategory::Category)
Definition: preconditioners.hh:682
SeqILU(const M &A, real_field_type w, const bool resort=false)
Constructor.
Definition: preconditioners.hh:561
const real_field_type w_
The relaxation factor to use.
Definition: preconditioners.hh:697
SeqILU(const std::shared_ptr< const AssembledLinearOperator< M, X, Y > > &A, const ParameterTree &configuration)
Constructor.
Definition: preconditioners.hh:580
X domain_type
The domain type of the preconditioner.
Definition: preconditioners.hh:539
Simd::Scalar< field_type > scalar_field_type
scalar type underlying the field_type
Definition: preconditioners.hh:547
std::unique_ptr< matrix_type > ILU_
The ILU(n) decomposition of the matrix. As storage a BCRSMatrix is used.
Definition: preconditioners.hh:689
SeqJac(const M &A, const ParameterTree &configuration)
Constructor.
Definition: preconditioners.hh:470
virtual void apply(X &v, const Y &d)
Apply the preconditioner.
Definition: preconditioners.hh:487
M matrix_type
The matrix type the preconditioner is for.
Definition: preconditioners.hh:415
Simd::Scalar< field_type > scalar_field_type
scalar type underlying the field_type
Definition: preconditioners.hh:423
SeqJac(const std::shared_ptr< const AssembledLinearOperator< M, X, Y > > &A, const ParameterTree &configuration)
Constructor.
Definition: preconditioners.hh:453
X::field_type field_type
The field type of the preconditioner.
Definition: preconditioners.hh:421
virtual void pre(X &x, Y &b)
Prepare the preconditioner.
Definition: preconditioners.hh:479
X domain_type
The domain type of the preconditioner.
Definition: preconditioners.hh:417
FieldTraits< scalar_field_type >::real_type real_field_type
real scalar type underlying the field_type
Definition: preconditioners.hh:425
virtual SolverCategory::Category category() const
Category of the preconditioner (see SolverCategory::Category)
Definition: preconditioners.hh:503
SeqJac(const M &A, int n, real_field_type w)
Constructor.
Definition: preconditioners.hh:434
Y range_type
The range type of the preconditioner.
Definition: preconditioners.hh:419
SeqSOR(const std::shared_ptr< const AssembledLinearOperator< M, X, Y > > &A, const ParameterTree &configuration)
Constructor.
Definition: preconditioners.hh:302
M matrix_type
The matrix type the preconditioner is for.
Definition: preconditioners.hh:264
FieldTraits< scalar_field_type >::real_type real_field_type
real scalar type underlying the field_type
Definition: preconditioners.hh:274
void apply(X &v, const Y &d)
Apply the preconditioner in a special direction.
Definition: preconditioners.hh:350
X domain_type
The domain type of the preconditioner.
Definition: preconditioners.hh:266
virtual void pre(X &x, Y &b)
Prepare the preconditioner.
Definition: preconditioners.hh:328
Simd::Scalar< field_type > scalar_field_type
scalar type underlying the field_type
Definition: preconditioners.hh:272
virtual SolverCategory::Category category() const
Category of the preconditioner (see SolverCategory::Category)
Definition: preconditioners.hh:371
virtual void apply(X &v, const Y &d)
Apply the preconditioner.
Definition: preconditioners.hh:336
Y range_type
The range type of the preconditioner.
Definition: preconditioners.hh:268
SeqSOR(const M &A, const ParameterTree &configuration)
Constructor.
Definition: preconditioners.hh:319
X::field_type field_type
The field type of the preconditioner.
Definition: preconditioners.hh:270
SeqSOR(const M &A, int n, real_field_type w)
Constructor.
Definition: preconditioners.hh:283
SeqSSOR(const std::shared_ptr< const AssembledLinearOperator< M, X, Y > > &A, const ParameterTree &configuration)
Constructor.
Definition: preconditioners.hh:182
SeqSSOR(const M &A, const ParameterTree &configuration)
Constructor.
Definition: preconditioners.hh:199
virtual SolverCategory::Category category() const
Category of the preconditioner (see SolverCategory::Category)
Definition: preconditioners.hh:233
X::field_type field_type
The field type of the preconditioner.
Definition: preconditioners.hh:150
Simd::Scalar< field_type > scalar_field_type
scalar type underlying the field_type
Definition: preconditioners.hh:152
X domain_type
The domain type of the preconditioner.
Definition: preconditioners.hh:146
M matrix_type
The matrix type the preconditioner is for.
Definition: preconditioners.hh:144
virtual void apply(X &v, const Y &d)
Apply the preconditioner.
Definition: preconditioners.hh:216
virtual void pre(X &x, Y &b)
Prepare the preconditioner.
Definition: preconditioners.hh:208
Y range_type
The range type of the preconditioner.
Definition: preconditioners.hh:148
FieldTraits< scalar_field_type >::real_type real_field_type
real scalar type underlying the field_type
Definition: preconditioners.hh:154
SeqSSOR(const M &A, int n, real_field_type w)
Constructor.
Definition: preconditioners.hh:163
typename Overloads::ScalarType< std::decay_t< V > >::type Scalar
Element type of some SIMD type.
Definition: interface.hh:235
Simple iterative methods like Jacobi, Gauss-Seidel, SOR, SSOR, etc. in a generic way.
Incomplete LDL decomposition.
The incomplete LU factorization kernels.
Some handy generic functions for ISTL matrices.
void bildl_decompose(Matrix &A)
compute ILDL decomposition of a symmetric matrix A
Definition: ildl.hh:88
A hierarchical structure of string parameters.
Include file for users of the SIMD abstraction layer.
Define general, extensible interface for inverse operators.
static void check(const Matrix &mat)
Check whether the a matrix has diagonal values on blocklevel recursion levels.
Definition: matrixutils.hh:53
Statistics about the application of an inverse operator.
Definition: solver.hh:48
@ sequential
Category for sequential solvers.
Definition: solvercategory.hh:25
static Category category(const OP &op, decltype(op.category()) *=nullptr)
Helperfunction to extract the solver category either from an enum, or from the newly introduced virtu...
Definition: solvercategory.hh:34
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Dec 20, 23:31, 2024)