Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
solverstack
ScalFMM
Commits
3b0047b0
Commit
3b0047b0
authored
Nov 24, 2014
by
BRAMAS Berenger
Browse files
Update suboctree to remove cells correctly
parent
a9e6d5e7
Changes
1
Show whitespace changes
Inline
Side-by-side
Src/Containers/FSubOctree.hpp
View file @
3b0047b0
...
@@ -137,11 +137,6 @@ protected:
...
@@ -137,11 +137,6 @@ protected:
if
(
arrayIndex
==
this
->
leftLeafIndex
&&
arrayIndex
==
this
->
rightLeafIndex
){
if
(
arrayIndex
==
this
->
leftLeafIndex
&&
arrayIndex
==
this
->
rightLeafIndex
){
this
->
rightLeafIndex
=
-
1
;
this
->
rightLeafIndex
=
-
1
;
// only one cells, return true
// only one cells, return true
// remove the last cells
cellAllocator
.
deleteObject
(
this
->
cells
[
indexLevel
][
arrayIndex
]);
this
->
cells
[
indexLevel
][
arrayIndex
]
=
nullptr
;
return
true
;
}
}
else
if
(
arrayIndex
==
this
->
leftLeafIndex
){
else
if
(
arrayIndex
==
this
->
leftLeafIndex
){
while
(
!
this
->
cells
[
indexLevel
][
++
this
->
leftLeafIndex
]
);
while
(
!
this
->
cells
[
indexLevel
][
++
this
->
leftLeafIndex
]
);
...
...
Write
Preview
Supports
Markdown
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