MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
mfem::spde::OffsetTransformer Class Reference

Adds an constant offset to a grid function, i.e. u(x) = u(x) + offset. More...

#include <transformation.hpp>

Inheritance diagram for mfem::spde::OffsetTransformer:
[legend]
Collaboration diagram for mfem::spde::OffsetTransformer:
[legend]

Public Member Functions

 OffsetTransformer ()=default
 
 OffsetTransformer (real_t offset)
 
 ~OffsetTransformer () override=default
 
void Transform (ParGridFunction &x) const override
 Offsets a grid function by an constant offset.
 
- Public Member Functions inherited from mfem::spde::GFTransformer
 GFTransformer ()=default
 
virtual ~GFTransformer ()=default
 

Detailed Description

Adds an constant offset to a grid function, i.e. u(x) = u(x) + offset.

Definition at line 56 of file transformation.hpp.

Constructor & Destructor Documentation

◆ OffsetTransformer() [1/2]

mfem::spde::OffsetTransformer::OffsetTransformer ( )
default

◆ OffsetTransformer() [2/2]

mfem::spde::OffsetTransformer::OffsetTransformer ( real_t offset)
inlineexplicit

Definition at line 60 of file transformation.hpp.

◆ ~OffsetTransformer()

mfem::spde::OffsetTransformer::~OffsetTransformer ( )
overridedefault

Member Function Documentation

◆ Transform()

void mfem::spde::OffsetTransformer::Transform ( ParGridFunction & x) const
overridevirtual

Offsets a grid function by an constant offset.

Implements mfem::spde::GFTransformer.

Definition at line 48 of file transformation.cpp.


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