Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
ScalFMM
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
solverstack
ScalFMM
Commits
27f9a090
Commit
27f9a090
authored
Jun 30, 2016
by
Quentin Khan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Group tree : add level information in the Group Tree cells
parent
9269711c
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
53 additions
and
6 deletions
+53
-6
Src/GroupTree/Chebyshev/FChebCellPOD.hpp
Src/GroupTree/Chebyshev/FChebCellPOD.hpp
+10
-1
Src/GroupTree/Core/FBasicCellPOD.hpp
Src/GroupTree/Core/FBasicCellPOD.hpp
+1
-1
Src/GroupTree/Core/FGroupTree.hpp
Src/GroupTree/Core/FGroupTree.hpp
+2
-0
Src/GroupTree/Rotation/FRotationCellPOD.hpp
Src/GroupTree/Rotation/FRotationCellPOD.hpp
+10
-1
Src/GroupTree/Taylor/FTaylorCellPOD.hpp
Src/GroupTree/Taylor/FTaylorCellPOD.hpp
+10
-1
Src/GroupTree/TestKernel/FTestCellPOD.hpp
Src/GroupTree/TestKernel/FTestCellPOD.hpp
+10
-1
Src/GroupTree/Uniform/FUnifCellPOD.hpp
Src/GroupTree/Uniform/FUnifCellPOD.hpp
+10
-1
No files found.
Src/GroupTree/Chebyshev/FChebCellPOD.hpp
View file @
27f9a090
...
...
@@ -51,6 +51,16 @@ public:
symb
->
mortonIndex
=
inMortonIndex
;
}
/** To get the cell level */
int
getLevel
()
const
{
return
symb
->
level
;
}
/** To set the cell level */
void
setLevel
(
const
int
level
)
{
symb
->
level
=
level
;
}
/** To get the position */
FTreeCoordinate
getCoordinate
()
const
{
return
FTreeCoordinate
(
symb
->
coordinates
[
0
],
...
...
@@ -103,4 +113,3 @@ public:
#endif // FCHEBCELLPOD_HPP
Src/GroupTree/Core/FBasicCellPOD.hpp
View file @
27f9a090
...
...
@@ -9,7 +9,7 @@
struct
alignas
(
FStarPUDefaultAlign
::
StructAlign
)
FBasicCellPOD
{
MortonIndex
mortonIndex
;
int
coordinates
[
3
];
int
level
;
};
#endif // FBASICCELLPOD_HPP
Src/GroupTree/Core/FGroupTree.hpp
View file @
27f9a090
...
...
@@ -99,6 +99,7 @@ public:
CompositeCellClass
newNode
=
newBlock
->
getCompleteCell
(
cellIdInBlock
);
newNode
.
setMortonIndex
(
newNodeIndex
);
newNode
.
setCoordinate
(
newNodeCoordinate
);
newNode
.
setLevel
(
idxLevel
);
// Add leaf
nbParticlesOffsetBeforeLeaf
=
newParticleBlock
->
newLeaf
(
newNodeIndex
,
cellIdInBlock
,
...
...
@@ -149,6 +150,7 @@ public:
CompositeCellClass
newNode
=
newBlock
->
getCompleteCell
(
cellIdInBlock
);
newNode
.
setMortonIndex
(
newNodeIndex
);
newNode
.
setCoordinate
(
newNodeCoordinate
);
newNode
.
setLevel
(
idxLevel
);
cellIdInBlock
+=
1
;
blockIteratorInOctree
.
moveRight
();
...
...
Src/GroupTree/Rotation/FRotationCellPOD.hpp
View file @
27f9a090
...
...
@@ -53,6 +53,16 @@ public:
symb
->
mortonIndex
=
inMortonIndex
;
}
/** To get the cell level */
int
getLevel
()
const
{
return
symb
->
level
;
}
/** To set the cell level */
void
setLevel
(
const
int
level
)
{
symb
->
level
=
level
;
}
/** To get the position */
FTreeCoordinate
getCoordinate
()
const
{
return
FTreeCoordinate
(
symb
->
coordinates
[
0
],
...
...
@@ -109,4 +119,3 @@ public:
#endif // FROTATIONCELLPOD_HPP
Src/GroupTree/Taylor/FTaylorCellPOD.hpp
View file @
27f9a090
...
...
@@ -51,6 +51,16 @@ public:
symb
->
mortonIndex
=
inMortonIndex
;
}
/** To get the cell level */
int
getLevel
()
const
{
return
symb
->
level
;
}
/** To set the cell level */
void
setLevel
(
const
int
level
)
{
symb
->
level
=
level
;
}
/** To get the position */
FTreeCoordinate
getCoordinate
()
const
{
return
FTreeCoordinate
(
symb
->
coordinates
[
0
],
...
...
@@ -102,4 +112,3 @@ public:
};
#endif // FTAYLORCELLPOD_HPP
Src/GroupTree/TestKernel/FTestCellPOD.hpp
View file @
27f9a090
...
...
@@ -34,6 +34,16 @@ public:
symb
->
mortonIndex
=
inMortonIndex
;
}
/** To get the cell level */
int
getLevel
()
const
{
return
symb
->
level
;
}
/** To set the cell level */
void
setLevel
(
const
int
level
)
{
symb
->
level
=
level
;
}
/** To get the position */
FTreeCoordinate
getCoordinate
()
const
{
return
FTreeCoordinate
(
symb
->
coordinates
[
0
],
...
...
@@ -81,4 +91,3 @@ public:
#endif // FTESTCELLPOD_HPP
Src/GroupTree/Uniform/FUnifCellPOD.hpp
View file @
27f9a090
...
...
@@ -51,6 +51,16 @@ public:
symb
->
mortonIndex
=
inMortonIndex
;
}
/** To get the cell level */
int
getLevel
()
const
{
return
symb
->
level
;
}
/** To set the cell level */
void
setLevel
(
const
int
level
)
{
symb
->
level
=
level
;
}
/** To get the position */
FTreeCoordinate
getCoordinate
()
const
{
return
FTreeCoordinate
(
symb
->
coordinates
[
0
],
...
...
@@ -129,4 +139,3 @@ public:
};
#endif // FUNIFCELLPOD_HPP
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