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
Show more breadcrumbs
solverstack
ScalFMM
Commits
da99b171
Commit
da99b171
authored
10 years ago
by
BRAMAS Berenger
Browse files
Options
Downloads
Patches
Plain Diff
Add test for the number of particles
parent
06ce2d76
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
Tests/noDist/testBlockedMpiAlgorithm.cpp
+11
-0
11 additions, 0 deletions
Tests/noDist/testBlockedMpiAlgorithm.cpp
with
11 additions
and
0 deletions
Tests/noDist/testBlockedMpiAlgorithm.cpp
+
11
−
0
View file @
da99b171
...
@@ -81,6 +81,7 @@ int main(int argc, char* argv[]){
...
@@ -81,6 +81,7 @@ int main(int argc, char* argv[]){
const
int
NbLevels
=
FParameters
::
getValue
(
argc
,
argv
,
FParameterDefinitions
::
OctreeHeight
.
options
,
5
);
const
int
NbLevels
=
FParameters
::
getValue
(
argc
,
argv
,
FParameterDefinitions
::
OctreeHeight
.
options
,
5
);
const
int
NbParticles
=
FParameters
::
getValue
(
argc
,
argv
,
FParameterDefinitions
::
NbParticles
.
options
,
20
);
const
int
NbParticles
=
FParameters
::
getValue
(
argc
,
argv
,
FParameterDefinitions
::
NbParticles
.
options
,
20
);
const
int
groupSize
=
FParameters
::
getValue
(
argc
,
argv
,
LocalOptionBlocSize
.
options
,
250
);
const
int
groupSize
=
FParameters
::
getValue
(
argc
,
argv
,
LocalOptionBlocSize
.
options
,
250
);
const
int
totalNbParticles
=
(
NbParticles
*
mpiComm
.
global
().
processCount
());
// Load the particles
// Load the particles
FRandomLoader
loader
(
NbParticles
,
1.0
,
FPoint
(
0
,
0
,
0
),
mpiComm
.
global
().
processId
());
FRandomLoader
loader
(
NbParticles
,
1.0
,
FPoint
(
0
,
0
,
0
),
mpiComm
.
global
().
processId
());
...
@@ -148,6 +149,16 @@ int main(int argc, char* argv[]){
...
@@ -148,6 +149,16 @@ int main(int argc, char* argv[]){
GroupAlgorithm
groupalgo
(
mpiComm
.
global
(),
&
groupedTree
,
&
groupkernel
);
GroupAlgorithm
groupalgo
(
mpiComm
.
global
(),
&
groupedTree
,
&
groupkernel
);
groupalgo
.
execute
();
groupalgo
.
execute
();
groupedTree
.
forEachCellLeaf
<
FGroupTestParticleContainer
>
([
&
](
GroupCellClass
*
cell
,
FGroupTestParticleContainer
*
leaf
){
const
int
nbPartsInLeaf
=
leaf
->
getNbParticles
();
const
long
long
int
*
dataDown
=
leaf
->
getDataDown
();
for
(
int
idxPart
=
0
;
idxPart
<
nbPartsInLeaf
;
++
idxPart
){
if
(
dataDown
[
idxPart
]
!=
totalNbParticles
-
1
){
std
::
cout
<<
"[Full] Error a particle has "
<<
dataDown
[
idxPart
]
<<
" (it should be "
<<
(
NbParticles
-
1
)
<<
") at index "
<<
cell
->
getMortonIndex
()
<<
"
\n
"
;
}
}
});
return
0
;
return
0
;
}
}
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