preCICE v3.3.0
|
#include <MeshConfiguration.hpp>
Public Member Functions | |
MeshConfiguration (xml::XMLTag &parent, PtrDataConfiguration config) | |
Constructor, takes a valid data configuration as argument. | |
const std::vector< PtrMesh > & | meshes () const |
Returns all configured meshes. | |
std::vector< PtrMesh > & | meshes () |
Returns all configured meshes. | |
bool | hasMeshName (const std::string &meshName) const |
Returns whether Mesh has Data with the dataName. | |
mesh::PtrMesh | getMesh (const std::string &meshName) const |
Returns the configured mesh with given name, or NULL. | |
void | xmlTagCallback (const xml::ConfigurationContext &context, xml::XMLTag &callingTag) override |
Callback at begin of XML tag. | |
void | xmlEndTagCallback (const xml::ConfigurationContext &context, xml::XMLTag &callingTag) override |
Callback at end of XML tag and at end of subtag. | |
const PtrDataConfiguration & | getDataConfiguration () const |
void | addMesh (const mesh::PtrMesh &mesh) |
std::map< std::string, std::vector< std::string > > & | getNeededMeshes () |
void | addNeededMesh (const std::string &participant, const std::string &mesh) |
void | insertMeshToMeshDimensionsMap (const std::string &mesh, int dimensions) |
Initialize the map between meshes and dimensions, for unit tests that directly create mesh objects without going through the config reading. | |
Public Member Functions inherited from precice::xml::XMLTag::Listener | |
Listener & | operator= (Listener &&)=delete |
virtual | ~Listener ()=default |
Static Public Member Functions | |
static mesh::PtrMesh | getJustInTimeMappingMesh (int dimension) |
Private Member Functions | |
int | getDataDimensions (const std::string &meshName, const Data::typeName typeName) const |
Get the number of dimensions that data values of this type (scalar/vector) have on this mesh. |
Private Attributes | |
logging::Logger | _log {"mesh::MeshConfiguration"} |
const std::string | TAG |
const std::string | ATTR_NAME |
const std::string | ATTR_DIMENSIONS |
const std::string | TAG_DATA |
const std::string | ATTR_SIDE_INDEX |
std::map< std::string, int > | _meshDimensionsMap |
PtrDataConfiguration | _dataConfig |
Data configuration. | |
std::vector< PtrMesh > | _meshes |
Configured meshes. | |
std::map< std::string, std::vector< std::string > > | _neededMeshes |
to check later if all meshes that any coupling scheme needs are actually used by the participants | |
utils::ManageUniqueIDs | _meshIdManager |
utils::ManageUniqueIDs | _dataIDManager |
Definition at line 23 of file MeshConfiguration.hpp.
precice::mesh::MeshConfiguration::MeshConfiguration | ( | xml::XMLTag & | parent, |
PtrDataConfiguration | config ) |
Constructor, takes a valid data configuration as argument.
Definition at line 19 of file MeshConfiguration.cpp.
void precice::mesh::MeshConfiguration::addMesh | ( | const mesh::PtrMesh & | mesh | ) |
void precice::mesh::MeshConfiguration::addNeededMesh | ( | const std::string & | participant, |
const std::string & | mesh ) |
const PtrDataConfiguration & precice::mesh::MeshConfiguration::getDataConfiguration | ( | ) | const |
Definition at line 95 of file MeshConfiguration.cpp.
|
private |
Get the number of dimensions that data values of this type (scalar/vector) have on this mesh.
Definition at line 172 of file MeshConfiguration.cpp.
|
static |
mesh::PtrMesh precice::mesh::MeshConfiguration::getMesh | ( | const std::string & | meshName | ) | const |
Returns the configured mesh with given name, or NULL.
Definition at line 139 of file MeshConfiguration.cpp.
|
inline |
Definition at line 54 of file MeshConfiguration.hpp.
bool precice::mesh::MeshConfiguration::hasMeshName | ( | const std::string & | meshName | ) | const |
Returns whether Mesh has Data with the dataName.
Definition at line 131 of file MeshConfiguration.cpp.
void precice::mesh::MeshConfiguration::insertMeshToMeshDimensionsMap | ( | const std::string & | mesh, |
int | dimensions ) |
Initialize the map between meshes and dimensions, for unit tests that directly create mesh objects without going through the config reading.
Definition at line 164 of file MeshConfiguration.cpp.
std::vector< PtrMesh > & precice::mesh::MeshConfiguration::meshes | ( | ) |
Returns all configured meshes.
Definition at line 126 of file MeshConfiguration.cpp.
const std::vector< PtrMesh > & precice::mesh::MeshConfiguration::meshes | ( | ) | const |
Returns all configured meshes.
Definition at line 121 of file MeshConfiguration.cpp.
|
overridevirtual |
Callback at end of XML tag and at end of subtag.
At this callback, the attributes and all subtags of callingTag are parsed. This callback is first done for the listener, and then for the parent tag listener (if existing).
Implements precice::xml::XMLTag::Listener.
Definition at line 89 of file MeshConfiguration.cpp.
|
overridevirtual |
Callback at begin of XML tag.
At this callback, the attributes of the callingTag are already parsed and available, while the subtags are not yet parsed.
Implements precice::xml::XMLTag::Listener.
Definition at line 60 of file MeshConfiguration.cpp.
|
private |
Data configuration.
Definition at line 79 of file MeshConfiguration.hpp.
|
private |
Definition at line 92 of file MeshConfiguration.hpp.
|
private |
Definition at line 68 of file MeshConfiguration.hpp.
|
private |
Definition at line 76 of file MeshConfiguration.hpp.
|
private |
Configured meshes.
Definition at line 85 of file MeshConfiguration.hpp.
|
private |
Definition at line 90 of file MeshConfiguration.hpp.
|
private |
to check later if all meshes that any coupling scheme needs are actually used by the participants
Definition at line 88 of file MeshConfiguration.hpp.
|
private |
Definition at line 72 of file MeshConfiguration.hpp.
|
private |
Definition at line 71 of file MeshConfiguration.hpp.
|
private |
Definition at line 74 of file MeshConfiguration.hpp.
|
private |
Definition at line 70 of file MeshConfiguration.hpp.
|
private |
Definition at line 73 of file MeshConfiguration.hpp.