Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 47903659 authored by Olivier COULAUD's avatar Olivier COULAUD
Browse files

typos + the tree is constructed via the return of a function (move constructor)

parent ad8996aa
No related branches found
No related tags found
No related merge requests found
......@@ -54,7 +54,7 @@
#include "scalfmm/utils/compare_trees.hpp"
/// \code {.c++}
/// checks/Release/check_2d -th 4 --order 5 --input-file../data/units/test_2d_ref.fma -gs 100 --check
/// checks/Release/check_2d -th 4 --order 5 --input-file ../data/units/test_2d_ref.fma -gs 100 --check
/// \endcode
///
......@@ -148,7 +148,13 @@ auto read_data(const std::string& filename)
}
return std::make_tuple(container, center, width);
}
template<typename group_tree_type, typename BoxType, typename ContainerType>
auto build_tree(int tree_height, std::size_t order, BoxType const& box, int group_size, ContainerType const& container,
bool sorted) -> group_tree_type
{
group_tree_type tree(tree_height, order, box, group_size, group_size, container, sorted);
return tree;
}
/**
* @brief
*
......@@ -237,7 +243,9 @@ auto run(const int& tree_height, const int& group_size, const std::size_t order,
// Build tree
box_type box(box_width, box_center);
bool sorted = false;
group_tree_type tree(tree_height, order, box, group_size, group_size, container, sorted);
auto tree = build_tree<group_tree_type>(tree_height, order, box, group_size, container, sorted);
// group_tree_type tree(tree_height, order, box, group_size, group_size, container, sorted);
//
////////////////////////////////////////////////////
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment