25 PRECICE_TEST(
"A"_on(1_rank),
"B"_on(1_rank), Require::Events);
26 auto m2n = context.connectPrimaryRanks(
"A",
"B");
28 for (
int dim = 2; dim <= 3; dim++) {
30 for (
int i = 0; i < dim; i++) {
35 auto comm = m2n->getPrimaryRankCommunication();
37 if (context.isNamed(
"A")) {
40 BOOST_TEST(context.isNamed(
"B"));
45 BOOST_TEST(bb == bbCompare);
52 PRECICE_TEST(
"A"_on(1_rank),
"B"_on(1_rank), Require::Events);
53 auto m2n = context.connectPrimaryRanks(
"A",
"B");
55 for (
int dim = 2; dim <= 3; dim++) {
58 for (
Rank rank = 0; rank < 3; rank++) {
60 for (
int i = 0; i < dim; i++) {
67 auto &comm = *m2n->getPrimaryRankCommunication();
69 if (context.isNamed(
"A")) {
72 BOOST_TEST(context.isNamed(
"B"));
77 for (
int i = 0; i < 3; i++) {
78 bbmCompare.
emplace(i, bbCompare);
83 for (
Rank rank = 0; rank < 3; rank++) {
84 BOOST_TEST(bbm.
at(rank) == bbmCompare.
at(rank));
92 PRECICE_TEST(
""_on(4_ranks).setupIntraComm(), Require::Events);
97 for (
Rank rank = 0; rank < 3; rank++) {
99 for (
int i = 0; i < dimension; i++) {
108 if (context.isPrimary()) {
115 for (
int i = 0; i < 3; i++) {
116 bbmCompare.
emplace(i, bbCompare);
119 BOOST_TEST((
int) bbmCompare.
size() == 3);
120 for (
Rank rank = 0; rank < 3; rank++) {
121 BOOST_TEST(bbm.
at(rank) == bbmCompare.
at(rank));
128 PRECICE_TEST(
"A"_on(1_rank),
"B"_on(1_rank), Require::Events);
129 auto m2n = context.connectPrimaryRanks(
"A",
"B");
134 for (
Rank rank = 0; rank < 3; rank++) {
136 for (
int i = 0; i < 3; i++) {
144 auto &comm = *m2n->getPrimaryRankCommunication();
146 if (context.isNamed(
"A")) {
148 }
else if (context.isNamed(
"B")) {
153 for (
Rank rank = 0; rank < 3; rank++) {
155 for (
int i = 0; i < 3; i++) {
159 fbmCompare[rank] = fbCompare;
165 for (
Rank rank = 0; rank < 3; rank++) {
167 BOOST_TEST(fbm.
at(rank) == fbmCompare.
at(rank));
174 PRECICE_TEST(
""_on(4_ranks).setupIntraComm(), Require::Events);
179 for (
Rank rank = 0; rank < 3; rank++) {
181 for (
int i = 0; i < 3; i++) {
191 if (context.isPrimary()) {
198 for (
Rank rank = 0; rank < 3; rank++) {
199 for (
int i = 0; i < 3; i++) {
202 fbmCompare[rank] = fbCompare;
208 for (
Rank rank = 0; rank < 3; rank++) {
210 BOOST_TEST(fbm.
at(rank) == fbmCompare.
at(rank));
BOOST_AUTO_TEST_CASE(SendAndReceiveBoundingBox)
BOOST_AUTO_TEST_SUITE(PreProcess)
BOOST_AUTO_TEST_SUITE_END()
#define PRECICE_TEST(...)
An axis-aligned bounding box around a (partition of a) mesh.
static com::PtrCommunication & getCommunication()
Intra-participant communication.
contains the data communication abstraction layer.
void receiveBoundingBoxMap(Communication &communication, int rankSender, mesh::Mesh::BoundingBoxMap &bbm)
void broadcastReceiveBoundingBoxMap(Communication &communication, mesh::Mesh::BoundingBoxMap &bbm)
void sendBoundingBox(Communication &communication, int rankReceiver, const mesh::BoundingBox &bb)
void sendConnectionMap(Communication &communication, int rankReceiver, const mesh::Mesh::ConnectionMap &cm)
void receiveConnectionMap(Communication &communication, int rankSender, mesh::Mesh::ConnectionMap &cm)
void broadcastSendConnectionMap(Communication &communication, const mesh::Mesh::ConnectionMap &cm)
void broadcastSendBoundingBoxMap(Communication &communication, const mesh::Mesh::BoundingBoxMap &bbm)
void sendBoundingBoxMap(Communication &communication, int rankReceiver, const mesh::Mesh::BoundingBoxMap &bbm)
void broadcastReceiveConnectionMap(Communication &communication, mesh::Mesh::ConnectionMap &cm)
void receiveBoundingBox(Communication &communication, int rankSender, mesh::BoundingBox &bb)
Main namespace of the precice library.