12 #define BOOST_TEST_MODULE topology_test 18 #include <boost/test/unit_test.hpp> 32 static constexpr std::size_t
Width = 0;
33 static constexpr std::size_t
Depth = 1;
34 static constexpr std::size_t
Drift = 2;
35 static constexpr std::size_t
NDims = 3;
36 static constexpr std::size_t
Pos = 0;
37 static constexpr std::size_t
Neg = 1;
38 static constexpr std::size_t
NDirs = 2;
51 double const side = 2.0;
52 std::vector<geo::BoxBoundedGeo> boxes;
54 for (
int x = -1;
x <= 1; ++
x)
55 for (
int y = -1;
y <= 1; ++
y)
56 for (
int z = -1;
z <= 1; ++
z)
58 side * (
x - 0.5), side * (
x + 0.5),
59 side * (
y - 0.5), side * (
y + 0.5),
60 side * (
z - 0.5), side * (
z + 0.5)
62 std::vector<geo::BoxBoundedGeo const*> volumes;
63 std::transform(boxes.cbegin(), boxes.cend(), std::back_inserter(volumes),
64 [](
auto& obj){
return std::addressof(obj); });
static constexpr std::size_t Neg
static constexpr std::size_t Width
static constexpr std::size_t Pos
static constexpr std::size_t NDirs
std::vector< geo::BoxBoundedGeo const * > neighbors[NDims][NDirs]
static constexpr std::size_t Depth
Provides a base class aware of world box coordinates.
static constexpr std::size_t Drift
static constexpr std::size_t NDims
BOOST_AUTO_TEST_CASE(BoxedTopologyTestCase)