MFEM  v4.6.0
Finite element discretization library
Public Member Functions | List of all members
mfem::spde::ScaleTransformer Class Reference

Transforms a grid function by scaling it by a constant factor. More...

#include <transformation.hpp>

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

Public Member Functions

 ScaleTransformer ()=default
 
 ScaleTransformer (double scale)
 
 ~ScaleTransformer () override=default
 
void Transform (ParGridFunction &x) const override
 Scales a grid function by an constant factor. More...
 
- Public Member Functions inherited from mfem::spde::GFTransformer
 GFTransformer ()=default
 
virtual ~GFTransformer ()=default
 

Detailed Description

Transforms a grid function by scaling it by a constant factor.

Definition at line 70 of file transformation.hpp.

Constructor & Destructor Documentation

◆ ScaleTransformer() [1/2]

mfem::spde::ScaleTransformer::ScaleTransformer ( )
default

◆ ScaleTransformer() [2/2]

mfem::spde::ScaleTransformer::ScaleTransformer ( double  scale)
inlineexplicit

Definition at line 74 of file transformation.hpp.

◆ ~ScaleTransformer()

mfem::spde::ScaleTransformer::~ScaleTransformer ( )
overridedefault

Member Function Documentation

◆ Transform()

void mfem::spde::ScaleTransformer::Transform ( ParGridFunction x) const
overridevirtual

Scales a grid function by an constant factor.

Implements mfem::spde::GFTransformer.

Definition at line 56 of file transformation.cpp.


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