preCICE v3.1.2
Loading...
Searching...
No Matches
SerialCouplingSchemeFixture.cpp
Go to the documentation of this file.
4
5namespace precice::testing {
6
11
16
21
23{
24 cplscheme.setTimeWindows(timeWindows);
25}
26
31
33{
34 if (cplscheme._acceleration) {
35 cplscheme._acceleration->initialize(cplscheme.getAccelerationData());
36 }
37}
38
40{
41 for (const auto &pair : cplscheme._allData) {
42 pair.second->timeStepsStorage().move();
43 }
44}
45} // namespace precice::testing
void storeIteration()
used for storing all Data at end of doImplicitStep for later reference.
bool isImplicitCouplingScheme() const override
Function to determine whether coupling scheme is an implicit coupling scheme.
void setTimeWindows(int timeWindows)
Setter for _timeWindows.
acceleration::PtrAcceleration _acceleration
Acceleration method to speedup iteration convergence.
DataMap _allData
All send and receive data as a map "data ID -> data".
DataMap & getSendData()
Returns all data to be sent.
DataMap & getReceiveData()
Returns all data to be received.
Coupling scheme for serial coupling, i.e. staggered execution of two coupled participants.
DataMap & getAccelerationData() override final
interface to provide accelerated data, depending on coupling scheme being used
contains the testing framework.
Definition helper.hpp:9
int DataID
Definition Types.hpp:25
static void storeIteration(cplscheme::SerialCouplingScheme &cplscheme)
static void moveToNextWindow(cplscheme::SerialCouplingScheme &cplscheme)
static bool isImplicitCouplingScheme(cplscheme::SerialCouplingScheme &cplscheme)
static void initializeAcceleration(cplscheme::SerialCouplingScheme &cplscheme)
static cplscheme::CouplingData * getReceiveData(cplscheme::SerialCouplingScheme &cplscheme, DataID dataID)
static cplscheme::CouplingData * getSendData(cplscheme::SerialCouplingScheme &cplscheme, DataID dataID)
static void setTimeWindows(cplscheme::SerialCouplingScheme &cplscheme, int timeWindows)