Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
solverstack
ScalFMM
Commits
e1cc54c3
Commit
e1cc54c3
authored
Oct 17, 2013
by
BRAMAS Berenger
Browse files
update utest
parent
236ddb9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
UTests/utestRotationDirectTsm.cpp
View file @
e1cc54c3
...
@@ -54,7 +54,7 @@ class TestRotationDirectTsm : public FUTester<TestRotationDirectTsm> {
...
@@ -54,7 +54,7 @@ class TestRotationDirectTsm : public FUTester<TestRotationDirectTsm> {
Print
(
loader
.
getNumberOfParticles
());
Print
(
loader
.
getNumberOfParticles
());
const
int
NbLevels
=
4
;
const
int
NbLevels
=
4
;
const
int
SizeSubLevels
=
2
;
const
int
SizeSubLevels
=
3
;
struct
TestParticle
{
struct
TestParticle
{
...
@@ -64,14 +64,13 @@ class TestRotationDirectTsm : public FUTester<TestRotationDirectTsm> {
...
@@ -64,14 +64,13 @@ class TestRotationDirectTsm : public FUTester<TestRotationDirectTsm> {
FReal
potential
;
FReal
potential
;
};
};
TestParticle
*
const
particlesSources
=
new
TestParticle
[
nbSources
];
TestParticle
*
const
particlesTargets
=
new
TestParticle
[
nbTargets
];
// Create octree
// Create octree
OctreeClass
tree
(
NbLevels
,
SizeSubLevels
,
loader
.
getBoxWidth
(),
loader
.
getCenterOfBox
());
OctreeClass
tree
(
NbLevels
,
SizeSubLevels
,
loader
.
getBoxWidth
(),
loader
.
getCenterOfBox
());
const
FReal
physicalValue
=
0.10
;
const
FReal
physicalValue
=
0.10
;
TestParticle
*
const
particlesTargets
=
new
TestParticle
[
nbTargets
];
for
(
int
idxPart
=
0
;
idxPart
<
nbTargets
;
++
idxPart
){
for
(
int
idxPart
=
0
;
idxPart
<
nbTargets
;
++
idxPart
){
FPoint
position
;
FPoint
position
;
loader
.
fillParticle
(
&
position
);
loader
.
fillParticle
(
&
position
);
...
@@ -86,6 +85,7 @@ class TestRotationDirectTsm : public FUTester<TestRotationDirectTsm> {
...
@@ -86,6 +85,7 @@ class TestRotationDirectTsm : public FUTester<TestRotationDirectTsm> {
particlesTargets
[
idxPart
].
forces
[
2
]
=
0.0
;
particlesTargets
[
idxPart
].
forces
[
2
]
=
0.0
;
}
}
TestParticle
*
const
particlesSources
=
new
TestParticle
[
nbSources
];
for
(
int
idxPart
=
0
;
idxPart
<
nbSources
;
++
idxPart
){
for
(
int
idxPart
=
0
;
idxPart
<
nbSources
;
++
idxPart
){
FPoint
position
;
FPoint
position
;
loader
.
fillParticle
(
&
position
);
loader
.
fillParticle
(
&
position
);
...
@@ -228,7 +228,7 @@ class TestRotationDirectTsm : public FUTester<TestRotationDirectTsm> {
...
@@ -228,7 +228,7 @@ class TestRotationDirectTsm : public FUTester<TestRotationDirectTsm> {
/** set test */
/** set test */
void
SetTests
(){
void
SetTests
(){
AddTest
(
&
TestRotationDirectTsm
::
TestRotation
,
"Test Rotation Kernel TSM"
);
AddTest
(
&
TestRotationDirectTsm
::
TestRotation
,
"Test Rotation Kernel TSM"
);
AddTest
(
&
TestRotationDirectTsm
::
TestRotation
,
"Test Rotation Kernel TSM thread"
);
AddTest
(
&
TestRotationDirectTsm
::
TestRotation
Thread
,
"Test Rotation Kernel TSM thread"
);
}
}
};
};
...
...
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