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
d3e41e9c
Commit
d3e41e9c
authored
Jun 21, 2012
by
BRAMAS Berenger
Browse files
Add comment
parent
bd46ede9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Src/Core/FFmmAlgorithmThreadProc.hpp
View file @
d3e41e9c
...
...
@@ -70,14 +70,19 @@ class FFmmAlgorithmThreadProc : protected FAssertable {
const
int
OctreeHeight
;
/** An interval is the morton index interval
* that a proc use (it holds data in this interval)
*/
struct
Interval
{
MortonIndex
min
;
MortonIndex
max
;
};
/** My interval */
Interval
*
const
intervals
;
/** All process intervals */
Interval
*
const
workingIntervalsPerLevel
;
/** Get an interval from proc id and level */
Interval
&
getWorkingInterval
(
const
int
level
,
const
int
proc
){
return
workingIntervalsPerLevel
[
OctreeHeight
*
proc
+
level
];
}
...
...
@@ -85,10 +90,12 @@ class FFmmAlgorithmThreadProc : protected FAssertable {
public:
/** Get current proc interval at level */
Interval
&
getWorkingInterval
(
const
int
level
){
return
getWorkingInterval
(
level
,
idProcess
);
}
/** Does the current proc has some work at this level */
bool
hasWorkAtLevel
(
const
int
level
){
return
idProcess
==
0
||
getWorkingInterval
(
level
,
idProcess
-
1
).
max
<
getWorkingInterval
(
level
,
idProcess
).
max
;
}
...
...
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