Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
ScalFMM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab upgrade completed. Current version is 17.11.4.
Show more breadcrumbs
solverstack
ScalFMM
Commits
49d5eb5b
Commit
49d5eb5b
authored
10 years ago
by
Quentin Khan
Browse files
Options
Downloads
Patches
Plain Diff
FFmmAlgorithmSectionTask: Documentation correction
parent
5ea608a4
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Src/Core/FFmmAlgorithmSectionTask.hpp
+18
-17
18 additions, 17 deletions
Src/Core/FFmmAlgorithmSectionTask.hpp
with
18 additions
and
17 deletions
Src/Core/FFmmAlgorithmSectionTask.hpp
+
18
−
17
View file @
49d5eb5b
...
...
@@ -48,24 +48,29 @@
template
<
class
OctreeClass
,
class
CellClass
,
class
ContainerClass
,
class
KernelClass
,
class
LeafClass
>
class
FFmmAlgorithmSectionTask
:
public
FAbstractAlgorithm
,
public
FAlgorithmTimers
{
OctreeClass
*
const
tree
;
//< The octree to work on
KernelClass
**
kernels
;
//< The kernels
OctreeClass
*
const
tree
;
/
//< The octree to work on
KernelClass
**
kernels
;
//
/
< The kernels
const
int
MaxThreads
;
const
int
OctreeHeight
;
const
int
leafLevelSep
e
rationCriteria
;
const
int
leafLevelSep
a
rationCriteria
;
public:
/** The constructor need the octree and the kernels used for computation
* @param inTree the octree to work on
* @param inKernels the kernels to call
* An assert is launched if one of the arguments is null
*/
FFmmAlgorithmSectionTask
(
OctreeClass
*
const
inTree
,
KernelClass
*
const
inKernels
,
const
int
inLeafLevelSeperationCriteria
=
1
)
:
tree
(
inTree
)
,
kernels
(
0
),
MaxThreads
(
omp_get_max_threads
()),
OctreeHeight
(
tree
->
getHeight
()),
leafLevelSeperationCriteria
(
inLeafLevelSeperationCriteria
)
{
/** \brief Class constructor
*
* \note An assert checks whether one of the arguments is null.
* \param inTree the octree to work on.
* \param inKernels the kernels used for computation.
*/
FFmmAlgorithmSectionTask
(
OctreeClass
*
const
inTree
,
KernelClass
*
const
inKernels
,
const
int
inLeafLevelSeparationCriteria
=
1
)
:
tree
(
inTree
)
,
kernels
(
0
),
MaxThreads
(
omp_get_max_threads
()),
OctreeHeight
(
tree
->
getHeight
()),
leafLevelSeparationCriteria
(
inLeafLevelSeparationCriteria
)
{
FAssertLF
(
tree
,
"tree cannot be null"
);
FAssertLF
(
inKernels
,
"kernels cannot be null"
);
...
...
@@ -116,18 +121,14 @@ protected:
}
#pragma omp section
{
Timers
[
P2PTimer
].
tic
();
if
(
operationsToProceed
&
FFmmP2P
)
directPass
();
Timers
[
P2PTimer
].
tac
();
}
}
//Timers[NearTimer].tic();
#pragma omp single
{
if
(
operationsToProceed
&
FFmmL2P
)
L2PPass
();
}
//Timers[NearTimer].tac();
}
Timers
[
P2MTimer
].
tac
();
}
...
...
@@ -228,7 +229,7 @@ protected:
// for each levels
for
(
int
idxLevel
=
FAbstractAlgorithm
::
upperWorkingLevel
;
idxLevel
<
FAbstractAlgorithm
::
lowerWorkingLevel
;
++
idxLevel
){
FLOG
(
FTic
counterTimeLevel
);
const
int
separationCriteria
=
(
idxLevel
!=
FAbstractAlgorithm
::
lowerWorkingLevel
-
1
?
1
:
leafLevelSep
e
rationCriteria
);
const
int
separationCriteria
=
(
idxLevel
!=
FAbstractAlgorithm
::
lowerWorkingLevel
-
1
?
1
:
leafLevelSep
a
rationCriteria
);
// for each cells
do
{
const
int
counter
=
tree
->
getInteractionNeighbors
(
neighbors
,
octreeIterator
.
getCurrentGlobalCoordinate
(),
idxLevel
,
separationCriteria
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment