Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
aprokop committed Jan 10, 2024
1 parent 2805945 commit 554565b
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions examples/simple_intersection/example_intersection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,6 @@ int main(int argc, char *argv[])
using ExecutionSpace = Kokkos::DefaultExecutionSpace;
using MemorySpace = ExecutionSpace::memory_space;

// -----------
// | | 1 |
// | | 0 |
// |----2----|
// | | |
// | | |
// -----------
Kokkos::View<ArborX::Box *, MemorySpace> boxes("Example::boxes", 4);
auto boxes_host = Kokkos::create_mirror_view(boxes);
boxes_host[0] = {{0, 0, 0}, {1, 1, 1}};
Expand All @@ -37,8 +30,14 @@ int main(int argc, char *argv[])
boxes_host[3] = {{1, 1, 0}, {2, 2, 1}};
Kokkos::deep_copy(boxes, boxes_host);

Kokkos::View<decltype(ArborX::intersects(std::declval<ArborX::Point>())) *,
MemorySpace>
// -----------
// | | 1 |
// | | 0 |
// |----2----|
// | | |
// | | |
// -----------
Kokkos::View<decltype(ArborX::intersects(ArborX::Point())) *, MemorySpace>
queries("Example::queries", 3);
auto queries_host = Kokkos::create_mirror_view(queries);
queries_host[0] = ArborX::intersects(ArborX::Point{1.8, 1.5, 0.5});
Expand Down

0 comments on commit 554565b

Please sign in to comment.