34 Eigen::Vector3d one(1, 2, 3);
35 Eigen::Vector3d two(1, 2, 3);
43 *boost::unit_test::tolerance(1e-4))
48 BOOST_TEST(1.0 == 1.0001);
51 BOOST_TEST(1.0 == 1.01, boost::test_tools::tolerance(0.1));
62 BOOST_TEST(context.size == 4);
63 BOOST_TEST(context.hasSize(4));
72 BOOST_TEST(context.hasSize(2));
86 BOOST_TEST(context.hasSize(4));
95 if (context.isNamed(
"A")) {
96 BOOST_TEST(context.hasSize(1));
97 }
else if (context.isNamed(
"B")) {
98 BOOST_TEST(context.hasSize(2));
113 PRECICE_TEST(
"A"_on(1_rank),
"B"_on(1_rank), Require::Events);
114 BOOST_TEST(context.hasSize(1));
115 BOOST_TEST(context.isRank(0));
116 BOOST_TEST(context.isPrimary());
118 auto m2n = context.connectPrimaryRanks(
"A",
"B");
121 BOOST_TEST(m2n->getPrimaryRankCommunication()->isConnected());
131 BOOST_TEST(context.hasSize(2));
148 if (context.isNamed(
"Solid")) {
150 BOOST_TEST(context.hasSize(2));
156 BOOST_TEST(context.hasSize(2));
BOOST_AUTO_TEST_CASE(SingleProcessor)
This test runs on a single processor.
BOOST_AUTO_TEST_SUITE(PreProcess)
BOOST_AUTO_TEST_SUITE_END()
#define PRECICE_TEST(...)
static com::PtrCommunication & getCommunication()
Intra-participant communication.
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.