preCICE v3.1.2
|
Action that adds multiple source data into target data. More...
#include <SummationAction.hpp>
Public Member Functions | |
SummationAction (Timing timing, const std::vector< int > &sourceDataIDs, int targetDataID, const mesh::PtrMesh &mesh) | |
Constructor. | |
void | performAction () final override |
Adding data and applying them to target. | |
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::SummationAction"} |
mesh::PtrData | _targetData |
std::vector< mesh::PtrData > | _sourceDataVector |
Additional Inherited Members | |
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... | |
Action that adds multiple source data into target data.
Definition at line 12 of file SummationAction.hpp.
precice::action::SummationAction::SummationAction | ( | Timing | timing, |
const std::vector< int > & | sourceDataIDs, | ||
int | targetDataID, | ||
const mesh::PtrMesh & | mesh ) |
Constructor.
[in] | Timing | When to apply the action |
[in] | sourceDataIDs | Data indexes which are to be added |
[in] | targetDataID | Data in which the action will be applied |
Definition at line 13 of file SummationAction.cpp.
|
finaloverridevirtual |
Adding data and applying them to target.
Implements precice::action::Action.
Definition at line 30 of file SummationAction.cpp.
|
private |
Definition at line 32 of file SummationAction.hpp.
|
private |
Definition at line 35 of file SummationAction.hpp.
|
private |
Definition at line 34 of file SummationAction.hpp.