|
preCICE
|
Performs XML configuration of a participant. More...
#include <ParticipantConfiguration.hpp>
Classes | |
| struct | WatchPointConfig |
| struct | WatchIntegralConfig |
Public Member Functions | |
| ParticipantConfiguration (xml::XMLTag &parent, mesh::PtrMeshConfiguration meshConfiguration) | |
| void | setExperimental (bool experimental) |
| void | setRemeshing (bool allowed) |
| void | xmlTagCallback (const xml::ConfigurationContext &context, xml::XMLTag &callingTag) override |
| Callback function required for use of automatic configuration. | |
| void | xmlEndTagCallback (const xml::ConfigurationContext &context, xml::XMLTag &callingTag) override |
| Callback function required for use of automatic configuration. | |
| std::size_t | nParticipants () const |
| const std::vector< impl::PtrParticipant > & | getParticipants () const |
| Returns all configured participants. | |
| const impl::PtrParticipant | getParticipant (std::string_view participantName) const |
| Returns a participant with the given name. | |
| std::set< std::string > | knownParticipants () const |
| bool | hasParticipant (std::string_view name) const |
| std::string | hintFor (std::string_view wrongName) const |
| Public Member Functions inherited from precice::xml::XMLTag::Listener | |
| Listener & | operator= (Listener &&)=delete |
| virtual | ~Listener ()=default |
Private Member Functions | |
| partition::ReceivedPartition::GeometricFilter | getGeoFilter (const std::string &geoFilter) const |
| mesh::PtrMesh | copy (const mesh::PtrMesh &mesh) const |
| const mesh::PtrData & | getData (const mesh::PtrMesh &mesh, const std::string &nameData) const |
| mapping::PtrMapping | getMapping (const std::string &mappingName) |
| void | finishParticipantConfiguration (const xml::ConfigurationContext &context, const impl::PtrParticipant &participant) |
| void | checkIllDefinedMappings (const mapping::MappingConfiguration::ConfiguredMapping &mapping, const impl::PtrParticipant &participant) |
| Check whether a mapping to the same mesh and with similar data fields already exists. | |
Private Attributes | |
| logging::Logger | _log {"config::ParticipantConfiguration"} |
| const std::string | TAG = "participant" |
| const std::string | TAG_WRITE = "write-data" |
| const std::string | TAG_READ = "read-data" |
| const std::string | TAG_DATA_ACTION = "data-action" |
| const std::string | TAG_PROVIDE_MESH = "provide-mesh" |
| const std::string | TAG_RECEIVE_MESH = "receive-mesh" |
| const std::string | TAG_WATCH_INTEGRAL = "watch-integral" |
| const std::string | TAG_WATCH_POINT = "watch-point" |
| const std::string | TAG_INTRA_COMM = "intra-comm" |
| const std::string | ATTR_NAME = "name" |
| const std::string | ATTR_SOURCE_DATA = "source-data" |
| const std::string | ATTR_TARGET_DATA = "target-data" |
| const std::string | ATTR_TIMING = "timing" |
| const std::string | ATTR_LOCAL_OFFSET = "offset" |
| const std::string | ATTR_ACTION_TYPE = "type" |
| const std::string | ATTR_FROM = "from" |
| const std::string | ATTR_SAFETY_FACTOR = "safety-factor" |
| const std::string | ATTR_GEOMETRIC_FILTER = "geometric-filter" |
| const std::string | ATTR_DIRECT_ACCESS = "direct-access" |
| const std::string | ATTR_API_ACCESS = "api-access" |
| const std::string | ATTR_PROVIDE = "provide" |
| const std::string | ATTR_MESH = "mesh" |
| const std::string | ATTR_COORDINATE = "coordinate" |
| const std::string | ATTR_COMMUNICATION = "communication" |
| const std::string | ATTR_CONTEXT = "context" |
| const std::string | ATTR_NETWORK = "network" |
| const std::string | ATTR_EXCHANGE_DIRECTORY = "exchange-directory" |
| const std::string | ATTR_SCALE_WITH_CONN = "scale-with-connectivity" |
| const std::string | VALUE_FILTER_ON_SECONDARY_RANKS = "on-secondary-ranks" |
| const std::string | VALUE_FILTER_ON_PRIMARY_RANK = "on-primary-rank" |
| const std::string | VALUE_NO_FILTER = "no-filter" |
| const std::string | VALUE_VTK = "vtk" |
| const std::string | VALUE_VTU = "vtu" |
| const std::string | VALUE_VTP = "vtp" |
| const std::string | VALUE_CSV = "csv" |
| bool | _experimental = false |
| bool | _remeshing = false |
| mesh::PtrMeshConfiguration | _meshConfig |
| mapping::PtrMappingConfiguration | _mappingConfig |
| action::PtrActionConfiguration | _actionConfig |
| std::unique_ptr< io::ExportConfiguration > | _exportConfig |
| std::vector< impl::PtrParticipant > | _participants |
| std::vector< WatchPointConfig > | _watchPointConfigs |
| std::vector< WatchIntegralConfig > | _watchIntegralConfigs |
| bool | _isIntraCommDefined = false |
Performs XML configuration of a participant.
Definition at line 25 of file ParticipantConfiguration.hpp.
| precice::config::ParticipantConfiguration::ParticipantConfiguration | ( | xml::XMLTag & | parent, |
| mesh::PtrMeshConfiguration | meshConfiguration ) |
Definition at line 47 of file ParticipantConfiguration.cpp.
|
private |
Check whether a mapping to the same mesh and with similar data fields already exists.
Definition at line 813 of file ParticipantConfiguration.cpp.
|
private |
|
private |
Definition at line 424 of file ParticipantConfiguration.cpp.
|
private |
Definition at line 413 of file ParticipantConfiguration.cpp.
|
private |
Definition at line 401 of file ParticipantConfiguration.cpp.
|
private |
| const impl::PtrParticipant precice::config::ParticipantConfiguration::getParticipant | ( | std::string_view | participantName | ) | const |
Returns a participant with the given name.
Definition at line 367 of file ParticipantConfiguration.cpp.
| const std::vector< impl::PtrParticipant > & precice::config::ParticipantConfiguration::getParticipants | ( | ) | const |
Returns all configured participants.
Definition at line 362 of file ParticipantConfiguration.cpp.
| bool precice::config::ParticipantConfiguration::hasParticipant | ( | std::string_view | name | ) | const |
Definition at line 381 of file ParticipantConfiguration.cpp.
| std::string precice::config::ParticipantConfiguration::hintFor | ( | std::string_view | wrongName | ) | const |
Definition at line 386 of file ParticipantConfiguration.cpp.
| std::set< std::string > precice::config::ParticipantConfiguration::knownParticipants | ( | ) | const |
Definition at line 375 of file ParticipantConfiguration.cpp.
| std::size_t precice::config::ParticipantConfiguration::nParticipants | ( | ) | const |
Definition at line 356 of file ParticipantConfiguration.cpp.
| void precice::config::ParticipantConfiguration::setExperimental | ( | bool | experimental | ) |
Definition at line 243 of file ParticipantConfiguration.cpp.
| void precice::config::ParticipantConfiguration::setRemeshing | ( | bool | allowed | ) |
Definition at line 250 of file ParticipantConfiguration.cpp.
|
overridevirtual |
Callback function required for use of automatic configuration.
Implements precice::xml::XMLTag::Listener.
Definition at line 347 of file ParticipantConfiguration.cpp.
|
overridevirtual |
Callback function required for use of automatic configuration.
Implements precice::xml::XMLTag::Listener.
Definition at line 256 of file ParticipantConfiguration.cpp.
|
private |
Definition at line 127 of file ParticipantConfiguration.hpp.
|
private |
Definition at line 120 of file ParticipantConfiguration.hpp.
|
private |
Definition at line 129 of file ParticipantConfiguration.hpp.
|
private |
Definition at line 150 of file ParticipantConfiguration.hpp.
|
mutableprivate |
Definition at line 79 of file ParticipantConfiguration.hpp.
|
private |
Definition at line 125 of file ParticipantConfiguration.hpp.
|
private |
Definition at line 123 of file ParticipantConfiguration.hpp.
|
private |
Definition at line 131 of file ParticipantConfiguration.hpp.
|
private |
Definition at line 121 of file ParticipantConfiguration.hpp.
|
private |
Definition at line 135 of file ParticipantConfiguration.hpp.
|
private |
Definition at line 133 of file ParticipantConfiguration.hpp.
|
private |
Definition at line 96 of file ParticipantConfiguration.hpp.
|
private |
Definition at line 101 of file ParticipantConfiguration.hpp.
|
private |
Definition at line 105 of file ParticipantConfiguration.hpp.
|
private |
Definition at line 106 of file ParticipantConfiguration.hpp.
|
private |
Definition at line 104 of file ParticipantConfiguration.hpp.
|
private |
Definition at line 100 of file ParticipantConfiguration.hpp.
|
private |
Definition at line 108 of file ParticipantConfiguration.hpp.
|
private |
Definition at line 97 of file ParticipantConfiguration.hpp.
|
private |
Definition at line 99 of file ParticipantConfiguration.hpp.
|
private |
Definition at line 95 of file ParticipantConfiguration.hpp.
|
private |
Definition at line 103 of file ParticipantConfiguration.hpp.
|
private |
Definition at line 91 of file ParticipantConfiguration.hpp.
|
private |
Definition at line 107 of file ParticipantConfiguration.hpp.
|
private |
Definition at line 102 of file ParticipantConfiguration.hpp.
|
private |
Definition at line 98 of file ParticipantConfiguration.hpp.
|
private |
Definition at line 109 of file ParticipantConfiguration.hpp.
|
private |
Definition at line 92 of file ParticipantConfiguration.hpp.
|
private |
Definition at line 93 of file ParticipantConfiguration.hpp.
|
private |
Definition at line 94 of file ParticipantConfiguration.hpp.
|
private |
Definition at line 81 of file ParticipantConfiguration.hpp.
|
private |
Definition at line 84 of file ParticipantConfiguration.hpp.
|
private |
Definition at line 89 of file ParticipantConfiguration.hpp.
|
private |
Definition at line 85 of file ParticipantConfiguration.hpp.
|
private |
Definition at line 83 of file ParticipantConfiguration.hpp.
|
private |
Definition at line 86 of file ParticipantConfiguration.hpp.
|
private |
Definition at line 87 of file ParticipantConfiguration.hpp.
|
private |
Definition at line 88 of file ParticipantConfiguration.hpp.
|
private |
Definition at line 82 of file ParticipantConfiguration.hpp.
|
private |
Definition at line 118 of file ParticipantConfiguration.hpp.
|
private |
Definition at line 112 of file ParticipantConfiguration.hpp.
|
private |
Definition at line 111 of file ParticipantConfiguration.hpp.
|
private |
Definition at line 113 of file ParticipantConfiguration.hpp.
|
private |
Definition at line 115 of file ParticipantConfiguration.hpp.
|
private |
Definition at line 117 of file ParticipantConfiguration.hpp.
|
private |
Definition at line 116 of file ParticipantConfiguration.hpp.