preCICE v3.1.2
Loading...
Searching...
No Matches
ConstantRelaxationAcceleration.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <algorithm>
4#include <map>
5#include <string>
6#include <vector>
8#include "logging/Logger.hpp"
9
10namespace precice {
11namespace acceleration {
12
14public:
16 double relaxation,
17 std::vector<int> dataIDs);
18
19 virtual std::vector<int> getDataIDs() const override
20 {
21 return _dataIDs;
22 }
23
24 virtual void initialize(const DataMap &cplData) override;
25
26 virtual void performAcceleration(DataMap &cplData) override;
27
28 virtual void iterationsConverged(const DataMap &cplData) override
29 {
30 }
31
32private:
33 logging::Logger _log{"acceleration::ConstantRelaxationAcceleration"};
34
36
38};
39} // namespace acceleration
40} // namespace precice
ConstantRelaxationAcceleration(double relaxation, std::vector< int > dataIDs)
virtual void iterationsConverged(const DataMap &cplData) override
This class provides a lightweight logger.
Definition Logger.hpp:16
Main namespace of the precice library.