Commit b562c0b3 authored by Benjamin Dufoyer's avatar Benjamin Dufoyer

suppressing warning

parent c6d15e05
......@@ -39,7 +39,7 @@ public:
else
this->nb_block = nb_leaf/block_size+1;
std::swap(in_linear_tree,linear_tree);
std::swap(in_linear_tree,linear_tree);
}
////////////////////////////////////////////////
......@@ -47,7 +47,7 @@ public:
////////////////////////////////////////////////
~FBlockedLinearTree(){
delete linear_tree;
//delete linear_tree;
}
////////////////////////////////////////////////
......@@ -62,9 +62,11 @@ public:
* @param conf mpi configuration to work with the other process
*/
void redistribute_block(const inria::mpi_config& conf){
dstr_grp_tree_builder::parrallel_build_block(conf,
this->linear_tree,
this->block_size);
dstr_grp_tree_builder::parrallel_build_block(
conf,
this->linear_tree,
this->block_size);
//Update nb_leaf and nb_block
this->nb_leaf = (int)this->linear_tree->size();
if(nb_leaf%block_size == 0)
......@@ -122,20 +124,20 @@ public:
leaf = this->linear_tree->at(position);
} else {
FLOG(FLog::Controller << "[ERROR][FBlockedLinearTree] Trying to access to undefined leaf " << "\n");
leaf = this->linear_tree->first();
leaf = this->linear_tree->front();
}
return leaf;
}
int get_leaf_level(){
size_t get_leaf_level(){
return this->linear_tree->front().level;
}
int get_first_morton_index(){
size_t get_first_morton_index(){
return this->linear_tree->front().morton_index;
}
int get_last_morton_index(){
size_t get_last_morton_index(){
return linear_tree->back().morton_index;
}
......
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