Commit 09196ac7 authored by Quentin Khan's avatar Quentin Khan

FAdaptiveSequential: correct neigbour index computation

parent a080b0ac
......@@ -264,7 +264,7 @@ public:
auto center_offset = other_node->getBox().center() - node->getBox().center();
std::size_t other_node_index = 0;
for(std::size_t i = 0; i < node_t::Dim; ++i) {
other_node_index = other_node_index * 7
other_node_index = other_node_index * (2 * n + 1)
+ static_cast<unsigned long>(std::lround(center_offset[i] / box_width))
+ n;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment