25 : _tag(*this,
"precice-configuration", xml::XMLTag::OCCUR_ONCE),
27 _profilingConfig(_tag)
43 .
setDocumentation(
"Connected participants wait for each other in finalize, which can be helpful in SLURM sessions.");
65 if (tag.
getName() ==
"precice-configuration") {
84 bool participantFound =
false;
86 if (participant->getName() == neededMeshes.first) {
87 for (
const std::string &neededMesh : neededMeshes.second) {
89 "Participant \"{}\" needs to use the mesh \"{}\" to be able to use it in the coupling scheme. "
90 "Please either add a provide-mesh or a receive-mesh tag in this participant's configuration, or use a different mesh in the coupling scheme.",
91 neededMeshes.first, neededMesh);
93 participantFound =
true;
103 "The acceptor in <m2n:... acceptor=\"{}\" connector=\"{}\" /> is an unknown. {}",
107 "The connector in <m2n:... acceptor=\"{}\" connector=\"{}\" /> is an unknown. {}",
#define PRECICE_TRACE(...)
#define PRECICE_CHECK(check,...)
#define PRECICE_ASSERT(...)
#define PRECICE_UNREACHABLE(...)
const PtrParticipantConfiguration & getParticipantConfiguration() const
virtual void xmlTagCallback(const xml::ConfigurationContext &context, xml::XMLTag &tag)
Callback function required for use of automatic configuration.
mesh::PtrMeshConfiguration _meshConfiguration
virtual void xmlEndTagCallback(const xml::ConfigurationContext &context, xml::XMLTag &tag)
Callback function required for use of automatic configuration.
bool _experimental
Allow the use of experimental features.
m2n::M2NConfiguration::SharedPointer _m2nConfiguration
PtrParticipantConfiguration _participantConfiguration
xml::XMLTag & getXMLTag()
Returns root xml tag to start the automatic configuration process.
bool _waitInFinalize
Synchronize participants in finalize.
cplscheme::PtrCouplingSchemeConfiguration _couplingSchemeConfiguration
mesh::PtrDataConfiguration _dataConfiguration
XMLAttribute & setDocumentation(std::string documentation)
Sets a documentation string for the attribute.
Represents an XML tag to be configured automatically.
bool getBooleanAttributeValue(const std::string &name, std::optional< bool > default_value=std::nullopt) const
XMLTag & setDocumentation(const std::string &documentation)
Adds a description of the purpose of this XML tag.
const std::string & getName() const
Returns name (without namespace).
XMLTag & addNamespace(const std::string &namespaceName)
Adds a namespace to the tag.
XMLTag & addAttribute(const XMLAttribute< double > &attribute)
Removes the XML subtag with given name.
XMLAttribute< std::string > makeXMLAttribute(std::string name, const char *defaultValue)
Tightly coupled to the parameters of Participant()