www.mooseframework.org
Public Member Functions | Protected Attributes | List of all members
LumpedPreconditioner Class Reference

Helper class to apply preconditioner. More...

Inheritance diagram for LumpedPreconditioner:
[legend]

Public Member Functions

 LumpedPreconditioner (const NumericVector< Real > &diag_inverse)
 
virtual void init () override
 
virtual void apply (const NumericVector< Real > &x, NumericVector< Real > &y) override
 

Protected Attributes

const NumericVector< Real > & _diag_inverse
 The inverse of the diagonal of the lumped matrix. More...
 

Detailed Description

Helper class to apply preconditioner.

Definition at line 49 of file ActuallyExplicitEuler.C.

Constructor & Destructor Documentation

◆ LumpedPreconditioner()

LumpedPreconditioner::LumpedPreconditioner ( const NumericVector< Real > &  diag_inverse)
inline

Definition at line 52 of file ActuallyExplicitEuler.C.

53  : Preconditioner(diag_inverse.comm()), _diag_inverse(diag_inverse)
54  {
55  }
const NumericVector< Real > & _diag_inverse
The inverse of the diagonal of the lumped matrix.

Member Function Documentation

◆ apply()

virtual void LumpedPreconditioner::apply ( const NumericVector< Real > &  x,
NumericVector< Real > &  y 
)
inlineoverridevirtual

Definition at line 63 of file ActuallyExplicitEuler.C.

64  {
65  y.pointwise_mult(_diag_inverse, x);
66  }
static PetscErrorCode Vec x
const NumericVector< Real > & _diag_inverse
The inverse of the diagonal of the lumped matrix.

◆ init()

virtual void LumpedPreconditioner::init ( )
inlineoverridevirtual

Definition at line 57 of file ActuallyExplicitEuler.C.

58  {
59  // No more initialization needed here
60  _is_initialized = true;
61  }

Member Data Documentation

◆ _diag_inverse

const NumericVector<Real>& LumpedPreconditioner::_diag_inverse
protected

The inverse of the diagonal of the lumped matrix.

Definition at line 70 of file ActuallyExplicitEuler.C.

Referenced by apply().


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