Mentions légales du service

Skip to content
Snippets Groups Projects
Commit a7b3bb6c authored by Quentin Khan's avatar Quentin Khan
Browse files

PerfTest: create tree up to given depth before inserting particles

parent d5ac184f
Branches
Tags
No related merge requests found
......@@ -241,6 +241,7 @@ struct adaptive_tree_descriptor {
std::unique_ptr<tree_t> build(const FPerfTestParams& params, loader_t& loader) {
auto tree = std::make_unique<tree_t>(typename tree_t::box_t{loader.getBoxWidth(), loader.getCenterOfBox()});
tree->leaf_max_particle_count(params.adaptive_density);
tree->root()->split_to_height(params.treeHeight);
return tree;
}
};
......@@ -248,6 +249,7 @@ struct adaptive_tree_descriptor {
template<typename tree_t>
static void info(FPerfTestParams& params, const tree_t& tree) {
params.json["config"]["tree"]["height"] = tree.height();
params.json["config"]["tree"]["initial height"] = params.treeHeight;
params.json["config"]["tree"]["leaf density"] = tree.leaf_max_particle_count();
std::size_t min = std::numeric_limits<std::size_t>::max(), max = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment