23 BOOST_TEST(context.hasSize(2));
25 BOOST_TEST((com !=
nullptr));
27 if (context.isPrimary()) {
32 com->receive(answer, 1);
33 BOOST_TEST(answer == 1111);
36 com->receive(received, 0);
37 BOOST_TEST(received == 1001);
40 BOOST_TEST(received == 1111);
41 com->send(received, 0);
49 BOOST_TEST(context.hasSize(3));
51 BOOST_TEST((com !=
nullptr));
53 if (context.isPrimary()) {
57 com->receive(message, 1);
59 BOOST_TEST(sum == 1011);
62 com->receive(message, 2);
64 BOOST_TEST(sum == 1111);
69 int tosend = context.isRank(1) ? 10 : 100;
73 com->receive(received, 0);
74 BOOST_TEST(received == 1111);
80 PRECICE_TEST(
"Offset"_on(1_rank),
"Test"_on(2_ranks).setupIntraComm());
82 if (context.isNamed(
"Offset"))
85 BOOST_TEST(context.hasSize(2));
87 BOOST_TEST((com !=
nullptr));
89 if (context.isPrimary()) {
95 com->receive(answer, 1);
96 BOOST_TEST(answer == 1111);
99 com->receive(received, 0);
100 BOOST_TEST(received == 1001);
103 com->send(received, 0);
109 PRECICE_TEST(
"Offset"_on(1_rank),
"Test"_on(3_ranks).setupIntraComm());
111 if (context.isNamed(
"Offset"))
114 BOOST_TEST(context.hasSize(3));
116 BOOST_TEST((com !=
nullptr));
118 if (context.isPrimary()) {
122 com->receive(message, 1);
124 BOOST_TEST(sum == 1011);
127 com->receive(message, 2);
129 BOOST_TEST(sum == 1111);
134 int tosend = context.isRank(1) ? 10 : 100;
135 com->send(tosend, 0);
138 com->receive(received, 0);
139 BOOST_TEST(received == 1111);