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

Public Member Functions

 MyDiagonalMatrix (const VectorType &diagonal)
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 Attributes

DiagonalMatrix< VectorType > diagonal_matrix

Additional Inherited Members

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

Detailed Description

template<typename VectorType>
class MyDiagonalMatrix< VectorType >

A wrapper class around DiagonalMatrix class from deal.II.

Definition at line 182 of file fluid_dynamics_matrix_free.cc.

Constructor & Destructor Documentation

◆ MyDiagonalMatrix()

template<typename VectorType>
MyDiagonalMatrix< VectorType >::MyDiagonalMatrix ( const VectorType & diagonal)
inline

Constructor.

Parameters
[in]diagonalVector containing the diagonal of the matrix.

Definition at line 190 of file fluid_dynamics_matrix_free.cc.

References diagonal_matrix.

Member Function Documentation

◆ vmult()

template<typename VectorType>
void MyDiagonalMatrix< 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 201 of file fluid_dynamics_matrix_free.cc.

References diagonal_matrix.

Member Data Documentation

◆ diagonal_matrix

template<typename VectorType>
DiagonalMatrix<VectorType> MyDiagonalMatrix< VectorType >::diagonal_matrix
private

DiagonalMatrix class from deal.II.

Definition at line 208 of file fluid_dynamics_matrix_free.cc.


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