preCICE v3.1.2
Loading...
Searching...
No Matches
SerializedPartitioning.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <map>
4#include <vector>
5
6#include "logging/Logger.hpp"
7#include "mesh/Mesh.hpp"
8
9namespace precice::com {
10class Communication;
11
12namespace serialize {
13
16public:
18
24
27
29 void assertValid() const;
30
31 void send(Communication &communication, int rankReceiver) const;
32
34 static SerializedConnectionMap receive(Communication &communication, int rankSender);
35
36 void broadcastSend(Communication &communication) const;
37
40
41private:
43
47};
48
51public:
57
60
62 void assertValid() const;
63
64 void send(Communication &communication, int rankReceiver);
65
67 static SerializedBoundingBox receive(Communication &communication, int rankSender);
68
69private:
71
77};
78
81public:
83
89
92
94 void assertValid() const;
95
96 void send(Communication &communication, int rankReceiver);
97
99 static SerializedBoundingBoxMap receive(Communication &communication, int rankSender);
100
101 void broadcastSend(Communication &communication);
102
105
106private:
108
116
122};
123
124} // namespace serialize
125
126} // namespace precice::com
Interface for all interprocess communication classes.
serialized representation of a BoundingBoxMap
static SerializedBoundingBoxMap broadcastReceive(Communication &communication)
receives a SerializedBoundingBoxMap and calls assertValid before returning
static SerializedBoundingBoxMap receive(Communication &communication, int rankSender)
receives a SerializedBoundingBoxMap and calls assertValid before returning
BoundingBoxMap toBoundingBoxMap() const
Builds and returns the BoundingBoxMap represented by the serialized state.
void send(Communication &communication, int rankReceiver)
static SerializedBoundingBoxMap serialize(const BoundingBoxMap &bbm)
void assertValid() const
asserts the content for correctness
serialized representation of a mesh::BoundingBox
static SerializedBoundingBox receive(Communication &communication, int rankSender)
receives a SerializedBoundingBox and calls assertValid before returning
static SerializedBoundingBox serialize(const mesh::BoundingBox &bbm)
mesh::BoundingBox toBoundingBox() const
Builds and returns the BoundingBox represented by the serialized state.
void send(Communication &communication, int rankReceiver)
void assertValid() const
asserts the content for correctness
serialized representation of ConnectionMap
void broadcastSend(Communication &communication) const
static SerializedConnectionMap receive(Communication &communication, int rankSender)
receives a SerializedConnectionMap and calls assertValid before returning
ConnectionMap toConnectionMap() const
Builds and returns the connection map represented by the serialized state.
static SerializedConnectionMap serialize(const ConnectionMap &cm)
static SerializedConnectionMap broadcastReceive(Communication &communication)
receives a SerializedConnectionMap and calls assertValid before returning
void assertValid() const
asserts the content for correctness
void send(Communication &communication, int rankReceiver) const
An axis-aligned bounding box around a (partition of a) mesh.
contains the data communication abstraction layer.