preCICE v3.1.1
Loading...
Searching...
No Matches
MPIDirectCommunicationTest.cpp
Go to the documentation of this file.
1#ifndef PRECICE_NO_MPI
2
6#include "math/constants.hpp"
8#include "testing/Testing.hpp"
9
11
12BOOST_AUTO_TEST_SUITE(CommunicationTests)
13
14BOOST_AUTO_TEST_SUITE(MPIDirect)
15
17
18BOOST_AUTO_TEST_CASE(SendReceivePrimitives)
19{
20 PRECICE_TEST(2_ranks, Require::Events);
22 TestSendAndReceivePrimitiveTypes<MPIDirectCommunication>(context);
23}
24
25BOOST_AUTO_TEST_CASE(SendReceiveEigen)
26{
27 PRECICE_TEST(2_ranks, Require::Events);
29 TestSendAndReceiveEigen<MPIDirectCommunication>(context);
30}
31
32BOOST_AUTO_TEST_CASE(BroadcastPrimitives)
33{
34 PRECICE_TEST(2_ranks, Require::Events);
36 TestBroadcastPrimitiveTypes<MPIDirectCommunication>(context);
37}
38
39BOOST_AUTO_TEST_CASE(BroadcastEigen)
40{
41 PRECICE_TEST(2_ranks, Require::Events);
43 TestBroadcastVectors<MPIDirectCommunication>(context);
44}
45
46BOOST_AUTO_TEST_CASE(ReducePrimitives)
47{
48 PRECICE_TEST(2_ranks, Require::Events);
50 TestReducePrimitiveTypes<MPIDirectCommunication>(context);
51}
52
54{
55 PRECICE_TEST(2_ranks, Require::Events);
57 TestReduceVectors<MPIDirectCommunication>(context);
58}
59
61
62BOOST_AUTO_TEST_SUITE_END() // MPIDirect
63BOOST_AUTO_TEST_SUITE_END() // Communication
64
65#endif
BOOST_AUTO_TEST_CASE(SendReceivePrimitives)
BOOST_AUTO_TEST_SUITE(PreProcess)
BOOST_AUTO_TEST_SUITE_END()
#define PRECICE_TEST(...)
Definition Testing.hpp:27
Provides connection methods for processes located in one communicator.