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
e96a9bc5
Commit
e96a9bc5
authored
Dec 03, 2015
by
PIACIBELLO Cyrille
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change level given inside init_leaf from Height of the tree to Height of the tree - 1
parent
c7481414
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Addons/CKernelApi/Src/CScalfmmApi.h
Addons/CKernelApi/Src/CScalfmmApi.h
+1
-1
Addons/CKernelApi/Src/FUserKernelEngine.hpp
Addons/CKernelApi/Src/FUserKernelEngine.hpp
+1
-1
No files found.
Addons/CKernelApi/Src/CScalfmmApi.h
View file @
e96a9bc5
...
...
@@ -175,7 +175,7 @@ typedef void (*Callback_apply_on_leaf)(int level, FSize nbParts, const FSize * i
/**
* @brief Callback to initialise data inside the Leaves
* @param level current level of leaves (ie height of the tree)
* @param level current level of leaves (ie height of the tree
-1
)
* @param nbParts Number of particles inside that leaf"
* @param idxParts array of size nbParts, containing the indices of each parts
* @param morton_index of the current cell
...
...
Addons/CKernelApi/Src/FUserKernelEngine.hpp
View file @
e96a9bc5
...
...
@@ -502,7 +502,7 @@ public:
//Then init leaves
octree
->
forEachCellLeaf
([
&
](
CoreCell
*
currCell
,
LeafClass
*
leaf
){
FTreeCoordinate
currCoord
=
currCell
->
getCoordinate
();
int
currLevel
=
octree
->
getHeight
();
int
currLevel
=
octree
->
getHeight
()
-
1
;
MortonIndex
currMorton
=
currCoord
.
getMortonIndex
(
currLevel
);
double
position
[
3
];
position
[
0
]
=
boxCorner
.
getX
()
+
currCoord
.
getX
()
*
boxwidth
/
double
(
1
<<
currLevel
);
...
...
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