|
preCICE
|
serialized representation of mesh::Mesh More...
#include <SerializedMesh.hpp>
Public Member Functions | |
| void | addToMesh (mesh::Mesh &mesh) const |
| void | assertValid () const |
| asserts the content for correctness | |
| void | send (Communication &communication, int rankReceiver) |
| void | broadcastSend (Communication &communication) |
Static Public Member Functions | |
| static SerializedMesh | serialize (const mesh::Mesh &mesh) |
| static SerializedMesh | receive (Communication &communication, int rankSender) |
| receives a SerializedMesh and calls assertValid before returning | |
| static SerializedMesh | broadcastReceive (Communication &communication) |
| receives a SerializedMesh and calls assertValid before returning | |
Private Member Functions | |
| SerializedMesh ()=default | |
Private Attributes | |
| std::vector< int > | sizes |
| contains the dimension, followed by the numbers of vertices, edges, triangles, and tetrahedra | |
| std::vector< double > | coords |
| sizes[0] * dimension coordinates for vertices | |
| std::vector< int > | ids |
serialized representation of mesh::Mesh
Definition at line 15 of file SerializedMesh.hpp.
|
privatedefault |
| void precice::com::serialize::SerializedMesh::addToMesh | ( | mesh::Mesh & | mesh | ) | const |
adds the serialized mesh to an actual mesh
The mesh to add to may contain vertices.
Definition at line 97 of file SerializedMesh.cpp.
| void precice::com::serialize::SerializedMesh::assertValid | ( | ) | const |
asserts the content for correctness
Definition at line 12 of file SerializedMesh.cpp.
|
static |
receives a SerializedMesh and calls assertValid before returning
Definition at line 82 of file SerializedMesh.cpp.
| void precice::com::serialize::SerializedMesh::broadcastSend | ( | Communication & | communication | ) |
Definition at line 73 of file SerializedMesh.cpp.
|
static |
receives a SerializedMesh and calls assertValid before returning
Definition at line 59 of file SerializedMesh.cpp.
| void precice::com::serialize::SerializedMesh::send | ( | Communication & | communication, |
| int | rankReceiver ) |
Definition at line 50 of file SerializedMesh.cpp.
|
static |
serializes a given mesh::Mesh
Calls assertValid prior
Definition at line 157 of file SerializedMesh.cpp.
|
private |
sizes[0] * dimension coordinates for vertices
Definition at line 49 of file SerializedMesh.hpp.
|
private |
Definition at line 57 of file SerializedMesh.hpp.
|
private |
contains the dimension, followed by the numbers of vertices, edges, triangles, and tetrahedra
Definition at line 46 of file SerializedMesh.hpp.