Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
solverstack
ScalFMM
Commits
b562c0b3
Commit
b562c0b3
authored
May 24, 2017
by
Benjamin Dufoyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
suppressing warning
parent
c6d15e05
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
Src/GroupTree/Core/FBlockedLinearTree.hpp
Src/GroupTree/Core/FBlockedLinearTree.hpp
+11
-9
No files found.
Src/GroupTree/Core/FBlockedLinearTree.hpp
View file @
b562c0b3
...
...
@@ -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
->
f
irs
t
();
leaf
=
this
->
linear_tree
->
f
ron
t
();
}
return
leaf
;
}
in
t
get_leaf_level
(){
size_
t
get_leaf_level
(){
return
this
->
linear_tree
->
front
().
level
;
}
in
t
get_first_morton_index
(){
size_
t
get_first_morton_index
(){
return
this
->
linear_tree
->
front
().
morton_index
;
}
in
t
get_last_morton_index
(){
size_
t
get_last_morton_index
(){
return
linear_tree
->
back
().
morton_index
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment