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
4388c351
Commit
4388c351
authored
10 years ago
by
BRAMAS Berenger
Browse files
Options
Downloads
Patches
Plain Diff
simple update of the adaptative test
parent
3205c613
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Tests/noDist/testFmmAdaptiveAlgorithm.cpp
+7
-8
7 additions, 8 deletions
Tests/noDist/testFmmAdaptiveAlgorithm.cpp
with
7 additions
and
8 deletions
Tests/noDist/testFmmAdaptiveAlgorithm.cpp
+
7
−
8
View file @
4388c351
...
@@ -41,9 +41,9 @@
...
@@ -41,9 +41,9 @@
#include
"../../Src/Files/FRandomLoader.hpp"
#include
"../../Src/Files/FRandomLoader.hpp"
#include
"Adaptative/FAdaptiveCell.hpp"
#include
"
../../Src/
Adaptative/FAdaptiveCell.hpp"
#include
"Adaptative/FAdaptiveKernelWrapper.hpp"
#include
"
../../Src/
Adaptative/FAdaptiveKernelWrapper.hpp"
#include
"Adaptative/FAbstractAdaptiveKernel.hpp"
#include
"
../../Src/
Adaptative/FAbstractAdaptiveKernel.hpp"
template
<
class
CellClass
,
class
ContainerClass
>
template
<
class
CellClass
,
class
ContainerClass
>
class
FAdaptiveTestKernel
:
public
FTestKernels
<
CellClass
,
ContainerClass
>
,
public
FAbstractAdaptiveKernel
<
CellClass
,
ContainerClass
>
{
class
FAdaptiveTestKernel
:
public
FTestKernels
<
CellClass
,
ContainerClass
>
,
public
FAbstractAdaptiveKernel
<
CellClass
,
ContainerClass
>
{
...
@@ -133,19 +133,18 @@ int main(int argc, char ** argv){
...
@@ -133,19 +133,18 @@ int main(int argc, char ** argv){
const
int
NbLevels
=
FParameters
::
getValue
(
argc
,
argv
,
"-h"
,
7
);
const
int
NbLevels
=
FParameters
::
getValue
(
argc
,
argv
,
"-h"
,
7
);
const
int
SizeSubLevels
=
FParameters
::
getValue
(
argc
,
argv
,
"-sh"
,
3
);
const
int
SizeSubLevels
=
FParameters
::
getValue
(
argc
,
argv
,
"-sh"
,
3
);
const
int
NbPart
=
FParameters
::
getValue
(
argc
,
argv
,
"-nb"
,
2000000
);
FTic
counter
;
FTic
counter
;
//////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////
FRandomLoader
loader
(
Nb
Par
t
,
1
,
FPoint
(
0.5
,
0.5
,
0.5
),
1
);
FRandomLoader
loader
(
F
Par
ameters
::
getValue
(
argc
,
argv
,
"-nb"
,
2000000
)
,
1
,
FPoint
(
0.5
,
0.5
,
0.5
),
1
);
OctreeClass
tree
(
NbLevels
,
SizeSubLevels
,
loader
.
getBoxWidth
(),
loader
.
getCenterOfBox
());
OctreeClass
tree
(
NbLevels
,
SizeSubLevels
,
loader
.
getBoxWidth
(),
loader
.
getCenterOfBox
());
//////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////
std
::
cout
<<
"Creating & Inserting "
<<
NbPart
<<
" particles ..."
<<
std
::
endl
;
std
::
cout
<<
"Creating & Inserting "
<<
loader
.
getNumberOfParticles
()
<<
" particles ..."
<<
std
::
endl
;
std
::
cout
<<
"
\t
Height : "
<<
NbLevels
<<
"
\t
sub-height : "
<<
SizeSubLevels
<<
std
::
endl
;
std
::
cout
<<
"
\t
Height : "
<<
NbLevels
<<
"
\t
sub-height : "
<<
SizeSubLevels
<<
std
::
endl
;
counter
.
tic
();
counter
.
tic
();
...
@@ -179,8 +178,8 @@ int main(int argc, char ** argv){
...
@@ -179,8 +178,8 @@ int main(int argc, char ** argv){
tree
.
forEachCellLeaf
([
&
](
CellWrapperClass
*
,
LeafClass
*
leaf
){
tree
.
forEachCellLeaf
([
&
](
CellWrapperClass
*
,
LeafClass
*
leaf
){
long
long
int
*
const
particlesAttributes
=
leaf
->
getTargets
()
->
getDataDown
();
long
long
int
*
const
particlesAttributes
=
leaf
->
getTargets
()
->
getDataDown
();
for
(
int
idxPart
=
0
;
idxPart
<
leaf
->
getTargets
()
->
getNbParticles
()
;
++
idxPart
){
for
(
int
idxPart
=
0
;
idxPart
<
leaf
->
getTargets
()
->
getNbParticles
()
;
++
idxPart
){
if
(
particlesAttributes
[
idxPart
]
!=
(
NbPart
-
1
)){
if
(
particlesAttributes
[
idxPart
]
!=
(
loader
.
getNumberOfParticles
()
-
1
)){
printf
(
"Incorrect %lld instead of %d
\n
"
,
particlesAttributes
[
idxPart
],
(
NbPart
-
1
));
printf
(
"Incorrect %lld instead of %d
\n
"
,
particlesAttributes
[
idxPart
],
(
loader
.
getNumberOfParticles
()
-
1
));
}
}
}
}
});
});
...
...
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