Skip to content

Commit

Permalink
Missed one.
Browse files Browse the repository at this point in the history
  • Loading branch information
bluescarni committed Jul 29, 2019
1 parent 6434f22 commit 3509c8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/rakau/detail/tree_coll.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -540,8 +540,8 @@ inline void tree<NDim, F, UInt, MAC>::compute_cgraph_impl(std::vector<tbb::concu
// Check for AABB overlap.
bool overlap = true;
for (std::size_t k = 0; k < NDim; ++k) {
const auto min2 = m_parts[k][idx2] - aabb_size2 * (F(1) / F(2));
const auto max2 = m_parts[k][idx2] + aabb_size2 * (F(1) / F(2));
const auto min2 = detail::fma_wrap(aabb_size2, -F(1) / F(2), m_parts[k][idx2]);
const auto max2 = detail::fma_wrap(aabb_size2, F(1) / F(2), m_parts[k][idx2]);

// NOTE: we regard the AABBs as closed ranges, that is,
// a single point in common in two segments is enough
Expand Down

0 comments on commit 3509c8c

Please sign in to comment.