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