14struct SerialCouplingSchemeFixture;
44 double timeWindowSize,
57 double timeWindowSize,
68 logging::Logger
_log{
"cplschemes::SerialCouplingSchemes"};
std::string localParticipant() const override final
Returns the name of the local participant.
Abstract base class for coupling schemes with two participants.
Coupling scheme for serial coupling, i.e. staggered execution of two coupled participants.
void exchangeSecondData() override final
Exchanges the second set of data.
void receiveAndSetTimeWindowSize()
Receives and sets the time window size, if this participant is the one to receive.
bool _participantSetsTimeWindowSize
Determines, if the time window size is set by the participant.
void sendTimeWindowSize()
Sends time window size, if this participant is the one to send.
void exchangeInitialData() override final
implements functionality for initialize in base class.
SerialCouplingScheme(double maxTime, int maxTimeWindows, double timeWindowSize, const std::string &firstParticipant, const std::string &secondParticipant, const std::string &localParticipant, m2n::PtrM2N m2n, constants::TimesteppingMethod dtMethod, CouplingMode cplMode, int minIterations, int maxIterations)
Constructor.
void exchangeFirstData() override final
Functions needed for advance()
ImplicitData implicitDataToReceive() const override final
Returns a vector of implicit data to receive in the next advance.
bool _participantReceivesTimeWindowSize
Determines, if the time window size is received by the participant.
DataMap & getAccelerationData() override final
interface to provide accelerated data, depending on coupling scheme being used
Main namespace of the precice library.