|
preCICE v3.3.0
|
#include <ScaleByAreaAction.hpp>
Public Types | |
| enum | Scaling { SCALING_DIVIDE_BY_AREA , SCALING_MULTIPLY_BY_AREA } |
| Public Types inherited from precice::action::Action | |
| enum | Timing { WRITE_MAPPING_POST , READ_MAPPING_POST } |
| Defines the time and place of application of the action. More... | |
Public Member Functions | |
| ScaleByAreaAction (Timing timing, int targetDataID, const mesh::PtrMesh &mesh, Scaling scaling) | |
| Constructor. | |
| void | performAction () final override |
| Scales data on mesh nodes according to selected scaling type. | |
| Public Member Functions inherited from precice::action::Action | |
| Action (Timing timing, const mesh::PtrMesh &mesh, mapping::Mapping::MeshRequirement requirement) | |
| Action (Timing timing, const mesh::PtrMesh &mesh) | |
| Action & | operator= (Action &&)=delete |
| virtual | ~Action ()=default |
| Destructor, empty. | |
| Timing | getTiming () const |
| Returns the timing of the action. | |
| const mesh::PtrMesh & | getMesh () const |
| Returns the mesh carrying the data used in the action. | |
| mapping::Mapping::MeshRequirement | getMeshRequirement () const |
| Returns the mesh requirement of this action. | |
Private Attributes | |
| logging::Logger | _log {"action::ScaleByAreaAction"} |
| mesh::PtrData | _targetData |
| Scaling | _scaling |
Definition at line 10 of file ScaleByAreaAction.hpp.
| Enumerator | |
|---|---|
| SCALING_DIVIDE_BY_AREA | Divides the data by the area of neighboring edges/triangles. |
| SCALING_MULTIPLY_BY_AREA | Multiplies the data by the area of neighboring edges/triangles. |
Definition at line 12 of file ScaleByAreaAction.hpp.
| precice::action::ScaleByAreaAction::ScaleByAreaAction | ( | Timing | timing, |
| int | targetDataID, | ||
| const mesh::PtrMesh & | mesh, | ||
| Scaling | scaling ) |
Constructor.
| [in] | data | Data that should be scaled. |
| [in] | scalingType | Type of scaling to be performed. |
Definition at line 15 of file ScaleByAreaAction.cpp.
|
finaloverridevirtual |
Scales data on mesh nodes according to selected scaling type.
Implements precice::action::Action.
Definition at line 26 of file ScaleByAreaAction.cpp.
|
private |
Definition at line 37 of file ScaleByAreaAction.hpp.
|
private |
Definition at line 41 of file ScaleByAreaAction.hpp.
|
private |
Definition at line 39 of file ScaleByAreaAction.hpp.