MFEM  v4.6.0
Finite element discretization library
Public Member Functions | List of all members
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 (double offset)
 
 ~OffsetTransformer () override=default
 
void Transform (ParGridFunction &x) const override
 Offsets a grid function by an constant offset. More...
 
- 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 ( double  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: