preCICE v3.1.2
Loading...
Searching...
No Matches
CouplingScheme.cpp
Go to the documentation of this file.
1#include "CouplingScheme.hpp"
2
3namespace precice::cplscheme {
4
5const double CouplingScheme::UNDEFINED_MAX_TIME = -1.0;
6
8
10
14
16{
18 {CouplingScheme::Action::WriteCheckpoint, "write-iteration-checkpoint"},
19 {CouplingScheme::Action::ReadCheckpoint, "read-iteration-checkpoint"},
20 {CouplingScheme::Action::InitializeData, "write-initial-data"}};
21
22 return actionNames.at(action);
23}
24
25} // namespace precice::cplscheme
T at(T... args)
static const int INFINITE_MAX_ITERATIONS
To be used, when the number of max iterations is infinite (for implicit coupling).
Action
Actions that are required by CouplingSchemes.
@ WriteCheckpoint
Is the participant required to write a checkpoint?
@ ReadCheckpoint
Is the participant required to read a previously written checkpoint?
@ InitializeData
Is the initialization of coupling data required?
static const double UNDEFINED_MAX_TIME
Does not define a time limit for the coupled simulation.
static const int UNDEFINED_MIN_ITERATIONS
To be used, when the number of min iterations is not defined (for explicit coupling).
static const int UNDEFINED_MAX_ITERATIONS
To be used, when the number of max iterations is not defined (for explicit coupling).
static std::string toString(Action action)
static const double UNDEFINED_TIME_WINDOW_SIZE
To be used, when the time window size is determined dynamically during the coupling.
static const int UNDEFINED_TIME_WINDOWS
Does not define limit on time windows for the coupled simulation.
contains implementations of coupling schemes for coupled simulations.