11 #include <boost/test/unit_test.hpp>
20 namespace tt = boost::test_tools;
38 return Vector3D(r * z, 3 * r, -2 * z);
61 Grid_t
g(std::make_tuple(std::move(r), std::move(z)));
64 for (
size_t i = 1; i <= g.numLocalBins().at(0) + 1; ++i) {
65 for (
size_t j = 1; j <= g.numLocalBins().at(1) + 1; ++j) {
66 Grid_t::index_t indices = {{i, j}};
67 const auto& llCorner = g.lowerLeftBinEdge(indices);
73 Mapper_t mapper(transformPos, transformBField, std::move(g));
78 BField_t
b(std::move(config));
89 auto&
c = *bCache.fieldCell;
90 BOOST_CHECK(
c.isInside(pos));
97 c = *bCache2.fieldCell;
98 BOOST_CHECK(
c.isInside(pos));
105 c = *bCache3.fieldCell;
106 BOOST_CHECK(
c.isInside(pos));
110 BOOST_CHECK(
c.isInside((pos << 3, 2, -3.7).finished()));
111 BOOST_CHECK(
c.isInside((pos << -2, 3, -4.7).finished()));
112 BOOST_CHECK(not
c.isInside((pos << -2, 3, 4.7).finished()));
113 BOOST_CHECK(not
c.isInside((pos << 0, 2, -4.7).finished()));
114 BOOST_CHECK(not
c.isInside((pos << 5, 2, 14.).finished()));