preCICE v3.1.1
Loading...
Searching...
No Matches
ParallelCouplingSchemeFixture.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 parallel coupling, i.e. simultaneous 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
static bool isImplicitCouplingScheme(cplscheme::ParallelCouplingScheme &cplscheme)
static void setTimeWindows(cplscheme::ParallelCouplingScheme &cplscheme, int timeWindows)
static void initializeAcceleration(cplscheme::ParallelCouplingScheme &cplscheme)
static cplscheme::CouplingData * getReceiveData(cplscheme::ParallelCouplingScheme &cplscheme, int dataID)
static void storeIteration(cplscheme::ParallelCouplingScheme &cplscheme)
static cplscheme::CouplingData * getSendData(cplscheme::ParallelCouplingScheme &cplscheme, int dataID)
static void moveToNextWindow(cplscheme::ParallelCouplingScheme &cplscheme)