Skip to content

Commit

Permalink
Update tree construction test to detect decltype(auto) problem
Browse files Browse the repository at this point in the history
  • Loading branch information
aprokop committed Sep 13, 2023
1 parent 7d18ee9 commit 23e46e1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/tstDetailsTreeConstruction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,16 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(assign_morton_codes, DeviceType,
BOOST_TEST(ArborX::Details::equals(
scene_host, {{{0.0, 0.0, 0.0}}, {{(float)N, (float)N, (float)N}}}));

ArborX::Details::LegacyValues values{boxes, ArborX::Box{}};
ArborX::Details::Indexables<decltype(values),
ArborX::Details::DefaultIndexableGetter>
indexables{values, ArborX::Details::DefaultIndexableGetter{}};
scene_host = ArborX::Box{};
ArborX::Details::TreeConstruction::calculateBoundingBoxOfTheScene(
space, indexables, scene_host);
BOOST_TEST(ArborX::Details::equals(
scene_host, {{{0.0, 0.0, 0.0}}, {{(float)N, (float)N, (float)N}}}));

Kokkos::View<unsigned long long *, DeviceType> morton_codes("morton_codes",
n);
ArborX::Details::TreeConstruction::projectOntoSpaceFillingCurve(
Expand Down

0 comments on commit 23e46e1

Please sign in to comment.