Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
solverstack
ScalFMM
Commits
9fe18bfc
Commit
9fe18bfc
authored
Jun 30, 2016
by
Quentin Khan
Browse files
Uniform tree: add level to FBasicCell
parent
3d944a02
Changes
2
Hide whitespace changes
Inline
Side-by-side
Src/Components/FBasicCell.hpp
View file @
9fe18bfc
...
...
@@ -35,8 +35,9 @@
*
*/
class
FBasicCell
:
public
FAbstractSerializable
{
MortonIndex
mortonIndex
;
//< Morton index (need by most elements)
FTreeCoordinate
coordinate
;
//< The position
MortonIndex
mortonIndex
;
///< Morton index (need by most elements)
FTreeCoordinate
coordinate
;
///< The position
std
::
size_t
level
;
///< Level in tree
public:
/** Default constructor */
...
...
@@ -45,7 +46,15 @@ public:
/** Default destructor */
virtual
~
FBasicCell
(){
}
}
std
::
size_t
getLevel
()
const
{
return
this
->
level
;
}
void
setLevel
(
std
::
size_t
inLevel
)
{
this
->
level
=
inLevel
;
}
/** To get the morton index */
MortonIndex
getMortonIndex
()
const
{
...
...
Src/Containers/FSubOctree.hpp
View file @
9fe18bfc
...
...
@@ -101,6 +101,8 @@ protected:
treePosition
.
getY
()
>>
bottomToTop
,
treePosition
.
getZ
()
>>
bottomToTop
);
newNode
->
setLevel
(
this
->
subOctreePosition
+
indexLevel
);
this
->
cells
[
indexLevel
][
arrayIndex
]
=
newNode
;
--
indexLevel
;
...
...
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