Commit b521ceb4 authored by ESTERIE Pierre's avatar ESTERIE Pierre
Browse files

some tree updates

parent 3b644e06
......@@ -596,7 +596,7 @@ namespace scalfmm::component
for(std::size_t level{m_tree_height - 2}; level >= m_top_level; --level)
{
// update vector_of_mortons for upper level
index::get_parent_morton_indices(vector_of_mortons, 0, dimension);
index::get_parent_morton_indices(vector_of_mortons, dimension);
// construct group of cells at current level
build_groups_of_cells_at_level(vector_of_mortons, level);
// construct cells in group of current level
......
......@@ -481,8 +481,8 @@ namespace scalfmm::index
///
/// @return
template<typename MortonType>
inline auto get_parent_morton_indices(std::vector<MortonType>& vector_of_mortons, std::size_t offset,
std::size_t dimension) -> void
inline auto get_parent_morton_indices(std::vector<MortonType>& vector_of_mortons, std::size_t dimension,
std::size_t offset = 0) -> void
{
for(std::size_t i = 0; i < vector_of_mortons.size(); ++i)
{
......
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