35 Eigen::Vector3d one(1, 2, 3);
36 Eigen::Vector3d two(1, 2, 3);
45 *
boost::unit_test::tolerance(1e-4))
50 BOOST_TEST(1.0 == 1.0001);
53 BOOST_TEST(1.0 == 1.01, boost::test_tools::tolerance(0.1));
65 BOOST_TEST(context.size == 4);
66 BOOST_TEST(context.hasSize(4));
76 BOOST_TEST(context.hasSize(2));
92 BOOST_TEST(context.hasSize(4));
102 if (context.isNamed(
"A")) {
103 BOOST_TEST(context.hasSize(1));
104 }
else if (context.isNamed(
"B")) {
105 BOOST_TEST(context.hasSize(2));
122 BOOST_TEST(context.hasSize(1));
123 BOOST_TEST(context.isRank(0));
124 BOOST_TEST(context.isPrimary());
126 auto m2n = context.connectPrimaryRanks(
"A",
"B");
129 BOOST_TEST(
m2n->getPrimaryRankCommunication()->isConnected());
140 BOOST_TEST(context.hasSize(2));
158 if (context.isNamed(
"Solid")) {
160 BOOST_TEST(context.hasSize(2));
166 BOOST_TEST(context.hasSize(2));
BOOST_AUTO_TEST_CASE(testIQNIMVJPPWithSubsteps)
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_SETUP(...)
Creates and attaches a TestSetup to a Boost test case.
static com::PtrCommunication & getCommunication()
Intra-participant communication.
contains the logic of the parallel communication between participants.
@ PETSc
Require to initialize PETSc. This implies the initialization of Events.
@ Events
Require to initialize Event.
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.