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

Class to that applies the lumped mass matrix preconditioner in the ExplicitTimeIntegrator. More...

#include <LumpedPreconditioner.h>

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

Class to that applies the lumped mass matrix preconditioner in the ExplicitTimeIntegrator.

Definition at line 29 of file LumpedPreconditioner.h.

Constructor & Destructor Documentation

◆ LumpedPreconditioner()

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

Definition at line 32 of file LumpedPreconditioner.h.

33  : Preconditioner(diag_inverse.comm()), _diag_inverse(diag_inverse)
34  {
35  }
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 43 of file LumpedPreconditioner.h.

44  {
45  y.pointwise_mult(_diag_inverse, x);
46  }
const NumericVector< Real > & _diag_inverse
The inverse of the diagonal of the lumped matrix.

◆ init()

virtual void LumpedPreconditioner::init ( )
inlineoverridevirtual

Definition at line 37 of file LumpedPreconditioner.h.

38  {
39  // No more initialization needed here
40  _is_initialized = true;
41  }
bool _is_initialized

Member Data Documentation

◆ _diag_inverse

const NumericVector<Real>& LumpedPreconditioner::_diag_inverse
protected

The inverse of the diagonal of the lumped matrix.

Definition at line 50 of file LumpedPreconditioner.h.

Referenced by apply().


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