29 PRECICE_TEST(
"A"_on(1_rank),
"B"_on(1_rank), Require::Events);
30 auto m2n = context.connectPrimaryRanks(
"A",
"B");
32 for (
int dim = 2; dim <= 3; dim++) {
41 auto &comm = *m2n->getPrimaryRankCommunication();
43 if (context.isNamed(
"A")) {
48 recvMesh.
createVertex(Eigen::VectorXd::Constant(dim, 9));
52 BOOST_TEST(recvMesh.
vertex(1) == v0);
53 BOOST_TEST(recvMesh.
vertex(2) == v1);
54 BOOST_TEST(recvMesh.
vertex(3) == v2);
55 BOOST_TEST(recvMesh.
edges().
at(0) == e0);
56 BOOST_TEST(recvMesh.
edges().
at(1) == e1);
57 BOOST_TEST(recvMesh.
edges().
at(2) == e2);
64 PRECICE_TEST(
"A"_on(1_rank),
"B"_on(1_rank), Require::Events);
65 auto m2n = context.connectPrimaryRanks(
"A",
"B");
78 auto &comm = *m2n->getPrimaryRankCommunication();
80 if (context.isNamed(
"A")) {
85 recvMesh.
createVertex(Eigen::VectorXd::Constant(dim, 9));
89 BOOST_TEST(recvMesh.
vertex(1) == v0);
90 BOOST_TEST(recvMesh.
vertex(2) == v1);
91 BOOST_TEST(recvMesh.
vertex(3) == v2);
92 BOOST_TEST(recvMesh.
edges().
at(0) == e0);
93 BOOST_TEST(recvMesh.
edges().
at(1) == e1);
94 BOOST_TEST(recvMesh.
edges().
at(2) == e2);
102 PRECICE_TEST(
""_on(2_ranks).setupIntraComm(), Require::Events);
117 if (context.isPrimary()) {
122 recvMesh.
createVertex(Eigen::VectorXd::Constant(dim, 9));
126 BOOST_TEST(recvMesh.
vertex(1) == v0);
127 BOOST_TEST(recvMesh.
vertex(2) == v1);
128 BOOST_TEST(recvMesh.
vertex(3) == v2);
129 BOOST_TEST(recvMesh.
edges().
at(0) == e0);
130 BOOST_TEST(recvMesh.
edges().
at(1) == e1);
131 BOOST_TEST(recvMesh.
edges().
at(2) == e2);
138 PRECICE_TEST(
"A"_on(1_rank),
"B"_on(1_rank), Require::Events);
139 auto m2n = context.connectPrimaryRanks(
"A",
"B");
151 auto &comm = *m2n->getPrimaryRankCommunication();
153 if (context.isNamed(
"A")) {
158 recvMesh.
createVertex(Eigen::VectorXd::Constant(dim, 9));
170 PRECICE_TEST(
""_on(2_ranks).setupIntraComm(), Require::Events);
184 if (context.isPrimary()) {
189 recvMesh.
createVertex(Eigen::VectorXd::Constant(dim, 9));
BOOST_AUTO_TEST_CASE(VertexEdgeMesh)
BOOST_AUTO_TEST_SUITE(PreProcess)
BOOST_AUTO_TEST_SUITE_END()
#define PRECICE_TEST(...)
Linear edge of a mesh, defined by two Vertex objects.
Container and creator for meshes.
std::size_t nVertices() const
Returns the number of vertices.
TetraContainer & tetrahedra()
Returns modifiable container holding all tetrahedra.
Vertex & vertex(VertexID id)
Mutable access to a vertex by VertexID.
TriangleContainer & triangles()
Returns modifiable container holding all triangles.
EdgeContainer & edges()
Returns modifiable container holding all edges.
Vertex & createVertex(const Eigen::VectorXd &coords)
Creates and initializes a Vertex object.
Tetrahedron of a mesh, defined by 4 vertices.
Triangle of a mesh, defined by three vertices.
Eigen::VectorXd getCoords() const
Returns the coordinates of the vertex.
static com::PtrCommunication & getCommunication()
Intra-participant communication.
contains the data communication abstraction layer.
void sendMesh(Communication &communication, int rankReceiver, const mesh::Mesh &mesh)
void broadcastSendMesh(Communication &communication, const mesh::Mesh &mesh)
void broadcastReceiveMesh(Communication &communication, mesh::Mesh &mesh)
void receiveMesh(Communication &communication, int rankSender, mesh::Mesh &mesh)
provides Mesh, Data and primitives.
boost::test_tools::predicate_result equals(const std::vector< float > &VectorA, const std::vector< float > &VectorB, float tolerance)
equals to be used in tests. Compares two std::vectors using a given tolerance. Prints both operands o...
Main namespace of the precice library.