preCICE v3.1.2
Loading...
Searching...
No Matches
SummationAction.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4#include <vector>
5#include "Action.hpp"
6#include "logging/Logger.hpp"
8
9namespace precice::action {
10
12class SummationAction : public Action {
13public:
23 Timing timing,
24 const std::vector<int> &sourceDataIDs,
25 int targetDataID,
26 const mesh::PtrMesh & mesh);
27
29 void performAction() final override;
30
31private:
32 logging::Logger _log{"action::SummationAction"};
33
36};
37
38} // namespace precice::action
Abstract base class for configurable actions on data and/or meshes.
Definition Action.hpp:14
Timing
Defines the time and place of application of the action.
Definition Action.hpp:17
Action that adds multiple source data into target data.
std::vector< mesh::PtrData > _sourceDataVector
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.
This class provides a lightweight logger.
Definition Logger.hpp:16
contains actions to modify exchanged data.
Definition Action.hpp:6