preCICE v3.1.2
|
Configuration for coupling schemes. More...
#include <CouplingSchemeConfiguration.hpp>
Classes | |
struct | Config |
struct | ConvergenceMeasureDefintion |
Public Member Functions | |
CouplingSchemeConfiguration (xml::XMLTag &parent, mesh::PtrMeshConfiguration meshConfig, m2n::M2NConfiguration::SharedPointer m2nConfig, config::PtrParticipantConfiguration participantConfig) | |
Constructor. | |
void | setExperimental (bool experimental) |
virtual | ~CouplingSchemeConfiguration () |
Destructor, empty. | |
bool | hasCouplingScheme (const std::string &participantName) const |
Check, if a coupling scheme is configured for a participant. | |
const PtrCouplingScheme & | getCouplingScheme (const std::string &participantName) const |
Returns the configured coupling scheme. | |
const std::string & | getDataToExchange (int index) const |
Returns the name of one dataset exchanged in the coupling scheme. | |
virtual void | xmlTagCallback (const xml::ConfigurationContext &context, xml::XMLTag &callingTag) |
Callback method required when using xml::XMLTag. | |
virtual void | xmlEndTagCallback (const xml::ConfigurationContext &context, xml::XMLTag &callingTag) |
Callback method required when using xml::XMLTag. | |
void | addCouplingScheme (const PtrCouplingScheme &cplScheme, const std::string &participantName) |
Adds a manually configured coupling scheme for a participant. | |
Public Member Functions inherited from precice::xml::XMLTag::Listener | |
Listener & | operator= (Listener &&)=delete |
virtual | ~Listener () |
Static Private Attributes | |
static const int | DEFAULT_MIN_ITERATIONS |
static const int | DEFAULT_MAX_ITERATIONS |
Configuration for coupling schemes.
Definition at line 45 of file CouplingSchemeConfiguration.hpp.
precice::cplscheme::CouplingSchemeConfiguration::CouplingSchemeConfiguration | ( | xml::XMLTag & | parent, |
mesh::PtrMeshConfiguration | meshConfig, | ||
m2n::M2NConfiguration::SharedPointer | m2nConfig, | ||
config::PtrParticipantConfiguration | participantConfig ) |
Constructor.
[in] | parent | Used to add subtags to hierarchical XML structure. |
[in] | meshConfig | For checking if a used mesh is defined. |
[in] | m2nConfig | For checking if a communication between participants to be coupled is defined. |
[in] | participantConfig | For checking waveform degree. |
Definition at line 45 of file CouplingSchemeConfiguration.cpp.
|
inlinevirtual |
Destructor, empty.
Definition at line 64 of file CouplingSchemeConfiguration.hpp.
|
private |
Definition at line 669 of file CouplingSchemeConfiguration.cpp.
|
private |
Definition at line 693 of file CouplingSchemeConfiguration.cpp.
|
private |
Definition at line 616 of file CouplingSchemeConfiguration.cpp.
|
private |
Definition at line 1156 of file CouplingSchemeConfiguration.cpp.
void precice::cplscheme::CouplingSchemeConfiguration::addCouplingScheme | ( | const PtrCouplingScheme & | cplScheme, |
const std::string & | participantName ) |
Adds a manually configured coupling scheme for a participant.
Definition at line 380 of file CouplingSchemeConfiguration.cpp.
|
private |
Adds configured exchange data to be sent or received to scheme.
Definition at line 1018 of file CouplingSchemeConfiguration.cpp.
|
private |
Adds configured exchange data to be sent or received to scheme. Only used specifically for MultiCouplingScheme.
Definition at line 1066 of file CouplingSchemeConfiguration.cpp.
|
private |
Definition at line 723 of file CouplingSchemeConfiguration.cpp.
|
private |
Definition at line 753 of file CouplingSchemeConfiguration.cpp.
|
private |
Definition at line 552 of file CouplingSchemeConfiguration.cpp.
|
private |
Definition at line 567 of file CouplingSchemeConfiguration.cpp.
|
private |
Definition at line 658 of file CouplingSchemeConfiguration.cpp.
|
private |
Definition at line 530 of file CouplingSchemeConfiguration.cpp.
|
private |
Definition at line 646 of file CouplingSchemeConfiguration.cpp.
|
private |
Definition at line 634 of file CouplingSchemeConfiguration.cpp.
|
private |
Definition at line 516 of file CouplingSchemeConfiguration.cpp.
|
private |
Definition at line 501 of file CouplingSchemeConfiguration.cpp.
|
private |
Definition at line 601 of file CouplingSchemeConfiguration.cpp.
|
private |
Definition at line 585 of file CouplingSchemeConfiguration.cpp.
|
private |
Definition at line 464 of file CouplingSchemeConfiguration.cpp.
|
private |
Definition at line 413 of file CouplingSchemeConfiguration.cpp.
|
private |
Definition at line 1101 of file CouplingSchemeConfiguration.cpp.
|
private |
Helper function to check iteration limits in conjunction with convergence measures.
Definition at line 977 of file CouplingSchemeConfiguration.cpp.
|
private |
Definition at line 1124 of file CouplingSchemeConfiguration.cpp.
|
private |
Helper function to check that waveform-degree and substep exchange are compatible.
The following rules are checked:
1) If waveform-degree="0", then user must set substeps="false", because constant interpolation (zeroth degree) is intended for debugging and user should use first degree instead. 2) If waveform-degree="1", then any configuration for substeps is allowed. The user might want to set substeps="false" for better performance. 3) If waveform-degree="2" or greater, the user must set substeps="true", because subcycling and exchange of substeps is required for higher-degree B-splines.
exchange | The Exchange being checked. |
Definition at line 991 of file CouplingSchemeConfiguration.cpp.
|
private |
Definition at line 911 of file CouplingSchemeConfiguration.cpp.
|
private |
Definition at line 827 of file CouplingSchemeConfiguration.cpp.
|
private |
Definition at line 886 of file CouplingSchemeConfiguration.cpp.
|
private |
Definition at line 804 of file CouplingSchemeConfiguration.cpp.
|
private |
Definition at line 850 of file CouplingSchemeConfiguration.cpp.
|
private |
Definition at line 793 of file CouplingSchemeConfiguration.cpp.
const PtrCouplingScheme & precice::cplscheme::CouplingSchemeConfiguration::getCouplingScheme | ( | const std::string & | participantName | ) | const |
Returns the configured coupling scheme.
Definition at line 145 of file CouplingSchemeConfiguration.cpp.
|
private |
Definition at line 783 of file CouplingSchemeConfiguration.cpp.
const std::string & precice::cplscheme::CouplingSchemeConfiguration::getDataToExchange | ( | int | index | ) | const |
Returns the name of one dataset exchanged in the coupling scheme.
|
private |
Definition at line 956 of file CouplingSchemeConfiguration.cpp.
bool precice::cplscheme::CouplingSchemeConfiguration::hasCouplingScheme | ( | const std::string & | participantName | ) | const |
Check, if a coupling scheme is configured for a participant.
Definition at line 139 of file CouplingSchemeConfiguration.cpp.
void precice::cplscheme::CouplingSchemeConfiguration::setExperimental | ( | bool | experimental | ) |
|
private |
Definition at line 1184 of file CouplingSchemeConfiguration.cpp.
|
private |
Definition at line 1168 of file CouplingSchemeConfiguration.cpp.
|
private |
Helper to update some configs which may have a different meaning in implicit coupling.
Definition at line 970 of file CouplingSchemeConfiguration.cpp.
|
virtual |
Callback method required when using xml::XMLTag.
Implements precice::xml::XMLTag::Listener.
Definition at line 317 of file CouplingSchemeConfiguration.cpp.
|
virtual |
Callback method required when using xml::XMLTag.
Implements precice::xml::XMLTag::Listener.
Definition at line 156 of file CouplingSchemeConfiguration.cpp.
|
private |
Definition at line 177 of file CouplingSchemeConfiguration.hpp.
|
private |
|
private |
If a participant has more than one coupling scheme, a composition is created.
Definition at line 185 of file CouplingSchemeConfiguration.hpp.
|
private |
Map from participant name to coupling scheme (composition).
Definition at line 182 of file CouplingSchemeConfiguration.hpp.
|
mutableprivate |
Definition at line 85 of file CouplingSchemeConfiguration.hpp.
|
private |
Definition at line 175 of file CouplingSchemeConfiguration.hpp.
|
private |
Definition at line 173 of file CouplingSchemeConfiguration.hpp.
|
private |
Definition at line 179 of file CouplingSchemeConfiguration.hpp.
|
private |
Definition at line 112 of file CouplingSchemeConfiguration.hpp.
|
private |
Definition at line 119 of file CouplingSchemeConfiguration.hpp.
|
private |
Definition at line 101 of file CouplingSchemeConfiguration.hpp.
|
private |
Definition at line 105 of file CouplingSchemeConfiguration.hpp.
|
private |
Definition at line 107 of file CouplingSchemeConfiguration.hpp.
|
private |
Definition at line 115 of file CouplingSchemeConfiguration.hpp.
|
private |
Definition at line 104 of file CouplingSchemeConfiguration.hpp.
|
private |
Definition at line 111 of file CouplingSchemeConfiguration.hpp.
|
private |
Definition at line 102 of file CouplingSchemeConfiguration.hpp.
|
private |
Definition at line 110 of file CouplingSchemeConfiguration.hpp.
|
private |
Definition at line 114 of file CouplingSchemeConfiguration.hpp.
|
private |
Definition at line 103 of file CouplingSchemeConfiguration.hpp.
|
private |
Definition at line 113 of file CouplingSchemeConfiguration.hpp.
|
private |
Definition at line 108 of file CouplingSchemeConfiguration.hpp.
|
private |
Definition at line 118 of file CouplingSchemeConfiguration.hpp.
|
private |
Definition at line 117 of file CouplingSchemeConfiguration.hpp.
|
private |
Definition at line 116 of file CouplingSchemeConfiguration.hpp.
|
private |
Definition at line 106 of file CouplingSchemeConfiguration.hpp.
|
private |
Definition at line 109 of file CouplingSchemeConfiguration.hpp.
|
staticprivate |
Definition at line 130 of file CouplingSchemeConfiguration.hpp.
|
staticprivate |
Definition at line 129 of file CouplingSchemeConfiguration.hpp.
|
private |
Definition at line 87 of file CouplingSchemeConfiguration.hpp.
|
private |
Definition at line 94 of file CouplingSchemeConfiguration.hpp.
|
private |
Definition at line 95 of file CouplingSchemeConfiguration.hpp.
|
private |
Definition at line 90 of file CouplingSchemeConfiguration.hpp.
|
private |
Definition at line 99 of file CouplingSchemeConfiguration.hpp.
|
private |
Definition at line 91 of file CouplingSchemeConfiguration.hpp.
|
private |
Definition at line 92 of file CouplingSchemeConfiguration.hpp.
|
private |
Definition at line 98 of file CouplingSchemeConfiguration.hpp.
|
private |
Definition at line 89 of file CouplingSchemeConfiguration.hpp.
|
private |
Definition at line 88 of file CouplingSchemeConfiguration.hpp.
|
private |
Definition at line 96 of file CouplingSchemeConfiguration.hpp.
|
private |
Definition at line 97 of file CouplingSchemeConfiguration.hpp.
|
private |
Definition at line 93 of file CouplingSchemeConfiguration.hpp.
|
private |
Definition at line 127 of file CouplingSchemeConfiguration.hpp.
|
private |
Definition at line 126 of file CouplingSchemeConfiguration.hpp.
|
private |
Definition at line 125 of file CouplingSchemeConfiguration.hpp.
|
private |
Definition at line 122 of file CouplingSchemeConfiguration.hpp.
|
private |
Definition at line 124 of file CouplingSchemeConfiguration.hpp.
|
private |
Definition at line 121 of file CouplingSchemeConfiguration.hpp.
|
private |
Definition at line 123 of file CouplingSchemeConfiguration.hpp.