Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
PreconditionASM< VectorType > Class Template Reference
Inheritance diagram for PreconditionASM< VectorType >:
[legend]

Public Types

using Number = typename VectorType::value_type

Public Member Functions

 PreconditionASM ()
template<int dim, typename GlobalSparseMatrixType, typename GlobalSparsityPattern, typename Number>
void initialize (const DoFHandler< dim > &dof_handler, const GlobalSparseMatrixType &global_sparse_matrix, const GlobalSparsityPattern &global_sparsity_pattern, const AffineConstraints< Number > &constraints, const std::shared_ptr< const Utilities::MPI::Partitioner > &partitioner, const unsigned int mg_level)
void vmult (VectorType &dst, const VectorType &src) const override
Public Member Functions inherited from PreconditionBase< VectorType >
 PreconditionBase ()
void timer_print () const
void timer_reset () const

Private Types

enum  WeightingType : std::uint8_t { none , left , right , symm }

Private Attributes

std::vector< std::vector< unsigned int > > patches
std::vector< LAPACKFullMatrix< Number > > blocks
VectorType weights
const WeightingType weighting_type
VectorType dst_internal
VectorType src_internal

Additional Inherited Members

Protected Attributes inherited from PreconditionBase< VectorType >
const MPI_Comm comm
ConditionalOStream pcout
TimerOutput timer

Detailed Description

template<typename VectorType>
class PreconditionASM< VectorType >

An Additive Schwarz preconditioner.

Definition at line 215 of file fluid_dynamics_matrix_free.cc.

Member Typedef Documentation

◆ Number

template<typename VectorType>
using PreconditionASM< VectorType >::Number = typename VectorType::value_type

Value type.

Definition at line 229 of file fluid_dynamics_matrix_free.cc.

Member Enumeration Documentation

◆ WeightingType

template<typename VectorType>
enum PreconditionASM::WeightingType : std::uint8_t
private

Weighting type.

Enumerator
none 
left 
right 
symm 

Definition at line 219 of file fluid_dynamics_matrix_free.cc.

Constructor & Destructor Documentation

◆ PreconditionASM()

template<typename VectorType>
PreconditionASM< VectorType >::PreconditionASM ( )
inline

Constructor.

Definition at line 234 of file fluid_dynamics_matrix_free.cc.

References left, and weighting_type.

Member Function Documentation

◆ initialize()

template<typename VectorType>
template<int dim, typename GlobalSparseMatrixType, typename GlobalSparsityPattern, typename Number>
void PreconditionASM< VectorType >::initialize ( const DoFHandler< dim > & dof_handler,
const GlobalSparseMatrixType & global_sparse_matrix,
const GlobalSparsityPattern & global_sparsity_pattern,
const AffineConstraints< Number > & constraints,
const std::shared_ptr< const Utilities::MPI::Partitioner > & partitioner,
const unsigned int mg_level )
inline

Initialize inverses of blocks.

Definition at line 246 of file fluid_dynamics_matrix_free.cc.

References blocks, dst_internal, none, patches, src_internal, symm, PreconditionBase< VectorType >::timer, weighting_type, and weights.

◆ vmult()

template<typename VectorType>
void PreconditionASM< VectorType >::vmult ( VectorType & dst,
const VectorType & src ) const
inlineoverridevirtual

Apply preconditioner.

Parameters
[in,out]dstDestination vector holding the result.
[in]srcInput source vector.

Implements PreconditionBase< VectorType >.

Definition at line 396 of file fluid_dynamics_matrix_free.cc.

References blocks, dst_internal, left, none, patches, right, src_internal, symm, PreconditionBase< VectorType >::timer, weighting_type, and weights.

Member Data Documentation

◆ blocks

template<typename VectorType>
std::vector<LAPACKFullMatrix<Number> > PreconditionASM< VectorType >::blocks
private

Inverse of patch matrices.

Definition at line 457 of file fluid_dynamics_matrix_free.cc.

◆ dst_internal

template<typename VectorType>
VectorType PreconditionASM< VectorType >::dst_internal
mutableprivate

Internal destination vector with correct ghosting.

Definition at line 466 of file fluid_dynamics_matrix_free.cc.

◆ patches

template<typename VectorType>
std::vector<std::vector<unsigned int> > PreconditionASM< VectorType >::patches
private

DoF indices of patches.

Definition at line 454 of file fluid_dynamics_matrix_free.cc.

◆ src_internal

template<typename VectorType>
VectorType PreconditionASM< VectorType >::src_internal
mutableprivate

Internal source vector with correct ghosting.

Definition at line 469 of file fluid_dynamics_matrix_free.cc.

◆ weighting_type

template<typename VectorType>
const WeightingType PreconditionASM< VectorType >::weighting_type
private

Weighting type.

Definition at line 463 of file fluid_dynamics_matrix_free.cc.

◆ weights

template<typename VectorType>
VectorType PreconditionASM< VectorType >::weights
mutableprivate

Weights.

Definition at line 460 of file fluid_dynamics_matrix_free.cc.


The documentation for this class was generated from the following file: