Integrator which scales its results by a constant value.
More...
#include <ScaleIntegrator.h>
|
| | ScaleIntegrator (mfem::BilinearFormIntegrator *integ) |
| |
| | ScaleIntegrator (mfem::BilinearFormIntegrator *integ, mfem::real_t scale) |
| |
| | ScaleIntegrator (mfem::BilinearFormIntegrator *integ, mfem::real_t scale, bool own) |
| |
| void | SetIntegrator (mfem::BilinearFormIntegrator *integ) |
| |
| void | SetScale (mfem::real_t scale) |
| |
| void | SetOwn (bool own) |
| |
| void | CheckIntegrator () |
| |
| virtual void | SetIntRule (const mfem::IntegrationRule *ir) override |
| |
| virtual void | AssembleElementMatrix (const mfem::FiniteElement &el, mfem::ElementTransformation &Trans, mfem::DenseMatrix &elmat) override |
| |
| virtual void | AssembleElementMatrix2 (const mfem::FiniteElement &trial_fe, const mfem::FiniteElement &test_fe, mfem::ElementTransformation &Trans, mfem::DenseMatrix &elmat) override |
| |
| virtual void | AssembleFaceMatrix (const mfem::FiniteElement &el1, const mfem::FiniteElement &el2, mfem::FaceElementTransformations &Trans, mfem::DenseMatrix &elmat) override |
| |
| virtual void | AssemblePA (const mfem::FiniteElementSpace &fes) override |
| |
| virtual void | AssembleDiagonalPA (mfem::Vector &diag) override |
| |
| virtual void | AssemblePAInteriorFaces (const mfem::FiniteElementSpace &fes) override |
| |
| virtual void | AssemblePABoundaryFaces (const mfem::FiniteElementSpace &fes) override |
| |
| virtual void | AddMultTransposePA (const mfem::Vector &x, mfem::Vector &y) const override |
| |
| virtual void | AddMultPA (const mfem::Vector &x, mfem::Vector &y) const override |
| |
| virtual void | AssembleEA (const mfem::FiniteElementSpace &fes, mfem::Vector &emat, const bool add) override |
| |
| virtual void | AssembleEABoundary (const mfem::FiniteElementSpace &fes, mfem::Vector &emat, const bool add) override |
| |
| virtual void | AssembleMF (const mfem::FiniteElementSpace &fes) override |
| |
| virtual void | AddMultMF (const mfem::Vector &x, mfem::Vector &y) const override |
| |
| virtual void | AssembleDiagonalMF (mfem::Vector &diag) override |
| |
| virtual | ~ScaleIntegrator () |
| |
Integrator which scales its results by a constant value.
Definition at line 24 of file ScaleIntegrator.h.
◆ ScaleIntegrator() [1/3]
| Moose::MFEM::ScaleIntegrator::ScaleIntegrator |
( |
mfem::BilinearFormIntegrator * |
integ | ) |
|
|
inline |
Definition at line 32 of file ScaleIntegrator.h.
34 {
35 }
mfem::BilinearFormIntegrator * _integrator
◆ ScaleIntegrator() [2/3]
| Moose::MFEM::ScaleIntegrator::ScaleIntegrator |
( |
mfem::BilinearFormIntegrator * |
integ, |
|
|
mfem::real_t |
scale |
|
) |
| |
|
inline |
◆ ScaleIntegrator() [3/3]
| Moose::MFEM::ScaleIntegrator::ScaleIntegrator |
( |
mfem::BilinearFormIntegrator * |
integ, |
|
|
mfem::real_t |
scale, |
|
|
bool |
own |
|
) |
| |
|
inline |
◆ ~ScaleIntegrator()
| Moose::MFEM::ScaleIntegrator::~ScaleIntegrator |
( |
| ) |
|
|
virtual |
◆ AddMultMF()
| void Moose::MFEM::ScaleIntegrator::AddMultMF |
( |
const mfem::Vector & |
x, |
|
|
mfem::Vector & |
y |
|
) |
| const |
|
overridevirtual |
Definition at line 152 of file ScaleIntegrator.C.
153{
154
155 mfem::Vector Mx(y.Size());
156 Mx = 0.0;
159 y += Mx;
160}
◆ AddMultPA()
| void Moose::MFEM::ScaleIntegrator::AddMultPA |
( |
const mfem::Vector & |
x, |
|
|
mfem::Vector & |
y |
|
) |
| const |
|
overridevirtual |
Definition at line 83 of file ScaleIntegrator.C.
84{
85
86 mfem::Vector Mx(y.Size());
87 Mx = 0.0;
90 y += Mx;
91}
◆ AddMultTransposePA()
| void Moose::MFEM::ScaleIntegrator::AddMultTransposePA |
( |
const mfem::Vector & |
x, |
|
|
mfem::Vector & |
y |
|
) |
| const |
|
overridevirtual |
Definition at line 94 of file ScaleIntegrator.C.
95{
96
97 mfem::Vector MTx(y.Size());
98 MTx = 0.0;
101 y += MTx;
102}
◆ AssembleDiagonalMF()
| void Moose::MFEM::ScaleIntegrator::AssembleDiagonalMF |
( |
mfem::Vector & |
diag | ) |
|
|
overridevirtual |
◆ AssembleDiagonalPA()
| void Moose::MFEM::ScaleIntegrator::AssembleDiagonalPA |
( |
mfem::Vector & |
diag | ) |
|
|
overridevirtual |
◆ AssembleEA()
| void Moose::MFEM::ScaleIntegrator::AssembleEA |
( |
const mfem::FiniteElementSpace & |
fes, |
|
|
mfem::Vector & |
emat, |
|
|
const bool |
add |
|
) |
| |
|
overridevirtual |
Definition at line 105 of file ScaleIntegrator.C.
108{
110 if (add)
111 {
112 mfem::Vector emat_scale(emat.Size());
115 emat += emat_scale;
116 }
117 else
118 {
121 }
122}
◆ AssembleEABoundary()
| void Moose::MFEM::ScaleIntegrator::AssembleEABoundary |
( |
const mfem::FiniteElementSpace & |
fes, |
|
|
mfem::Vector & |
emat, |
|
|
const bool |
add |
|
) |
| |
|
overridevirtual |
Definition at line 125 of file ScaleIntegrator.C.
128{
130 if (add)
131 {
132 mfem::Vector emat_scale(emat.Size());
133 _integrator->AssembleEABoundary(fes, emat_scale,
false);
135 emat += emat_scale;
136 }
137 else
138 {
141 }
142}
◆ AssembleElementMatrix()
| void Moose::MFEM::ScaleIntegrator::AssembleElementMatrix |
( |
const mfem::FiniteElement & |
el, |
|
|
mfem::ElementTransformation & |
Trans, |
|
|
mfem::DenseMatrix & |
elmat |
|
) |
| |
|
overridevirtual |
◆ AssembleElementMatrix2()
| void Moose::MFEM::ScaleIntegrator::AssembleElementMatrix2 |
( |
const mfem::FiniteElement & |
trial_fe, |
|
|
const mfem::FiniteElement & |
test_fe, |
|
|
mfem::ElementTransformation & |
Trans, |
|
|
mfem::DenseMatrix & |
elmat |
|
) |
| |
|
overridevirtual |
◆ AssembleFaceMatrix()
| void Moose::MFEM::ScaleIntegrator::AssembleFaceMatrix |
( |
const mfem::FiniteElement & |
el1, |
|
|
const mfem::FiniteElement & |
el2, |
|
|
mfem::FaceElementTransformations & |
Trans, |
|
|
mfem::DenseMatrix & |
elmat |
|
) |
| |
|
overridevirtual |
◆ AssembleMF()
| void Moose::MFEM::ScaleIntegrator::AssembleMF |
( |
const mfem::FiniteElementSpace & |
fes | ) |
|
|
overridevirtual |
◆ AssemblePA()
| void Moose::MFEM::ScaleIntegrator::AssemblePA |
( |
const mfem::FiniteElementSpace & |
fes | ) |
|
|
overridevirtual |
◆ AssemblePABoundaryFaces()
| void Moose::MFEM::ScaleIntegrator::AssemblePABoundaryFaces |
( |
const mfem::FiniteElementSpace & |
fes | ) |
|
|
overridevirtual |
◆ AssemblePAInteriorFaces()
| void Moose::MFEM::ScaleIntegrator::AssemblePAInteriorFaces |
( |
const mfem::FiniteElementSpace & |
fes | ) |
|
|
overridevirtual |
◆ CheckIntegrator()
| void Moose::MFEM::ScaleIntegrator::CheckIntegrator |
( |
| ) |
|
|
inline |
◆ SetIntegrator()
| void Moose::MFEM::ScaleIntegrator::SetIntegrator |
( |
mfem::BilinearFormIntegrator * |
integ | ) |
|
|
inline |
◆ SetIntRule()
| void Moose::MFEM::ScaleIntegrator::SetIntRule |
( |
const mfem::IntegrationRule * |
ir | ) |
|
|
overridevirtual |
◆ SetOwn()
| void Moose::MFEM::ScaleIntegrator::SetOwn |
( |
bool |
own | ) |
|
|
inline |
◆ SetScale()
| void Moose::MFEM::ScaleIntegrator::SetScale |
( |
mfem::real_t |
scale | ) |
|
|
inline |
◆ _integrator
| mfem::BilinearFormIntegrator* Moose::MFEM::ScaleIntegrator::_integrator {nullptr} |
|
private |
Definition at line 27 of file ScaleIntegrator.h.
Referenced by AddMultMF(), AddMultPA(), AddMultTransposePA(), AssembleDiagonalMF(), AssembleDiagonalPA(), AssembleEA(), AssembleEABoundary(), AssembleElementMatrix(), AssembleElementMatrix2(), AssembleFaceMatrix(), AssembleMF(), AssemblePA(), AssemblePABoundaryFaces(), AssemblePAInteriorFaces(), CheckIntegrator(), SetIntegrator(), SetIntRule(), and ~ScaleIntegrator().
◆ _own_integrator
| bool Moose::MFEM::ScaleIntegrator::_own_integrator |
|
private |
◆ _scale
| mfem::real_t Moose::MFEM::ScaleIntegrator::_scale |
|
private |
Definition at line 28 of file ScaleIntegrator.h.
Referenced by AddMultMF(), AddMultPA(), AddMultTransposePA(), AssembleDiagonalMF(), AssembleDiagonalPA(), AssembleEA(), AssembleEABoundary(), AssembleElementMatrix(), AssembleElementMatrix2(), AssembleFaceMatrix(), and SetScale().
The documentation for this class was generated from the following files: