diff --git a/Src/Adaptive/new/FAdaptiveSequential.hpp b/Src/Adaptive/new/FAdaptiveSequential.hpp index 92e0960beb1cb36b159968eb838b1a6d3a193d1c..3fb5eb7cbb29d09c5d35b3da4b1c54010e9af37c 100644 --- a/Src/Adaptive/new/FAdaptiveSequential.hpp +++ b/Src/Adaptive/new/FAdaptiveSequential.hpp @@ -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; }