Skip to content
GitLab
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
e25cba36
Commit
e25cba36
authored
Jan 22, 2014
by
BRAMAS Berenger
Browse files
update utest cheb periodic
parent
e62560e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
UTests/utestChebyshevDirectPeriodic.cpp
View file @
e25cba36
...
...
@@ -61,8 +61,8 @@ class TestChebyshevDirect : public FUTester<TestChebyshevDirect> {
const
int
NbLevels
=
3
;
const
int
SizeSubLevels
=
2
;
const
int
PeriodicDeep
=
2
;
const
int
NbParticles
=
1
;
const
int
PeriodicDeep
=
1
;
const
int
NbParticles
=
6
;
FRandomLoader
loader
(
NbParticles
);
...
...
@@ -102,7 +102,6 @@ class TestChebyshevDirect : public FUTester<TestChebyshevDirect> {
algo
.
execute
();
// Run direct computation
const
MatrixKernelClass
MatrixKernel
;
Print
(
"Direct..."
);
FTreeCoordinate
min
,
max
;
...
...
@@ -187,7 +186,7 @@ class TestChebyshevDirect : public FUTester<TestChebyshevDirect> {
Print
(
fz
.
getInfNorm
());
// Assert
const
FReal
MaximumDiffPotential
=
FReal
(
9e-
5
);
const
FReal
MaximumDiffPotential
=
FReal
(
9e-
4
);
const
FReal
MaximumDiffForces
=
FReal
(
9e-3
);
uassert
(
potentialDiff
.
getL2Norm
()
<
MaximumDiffPotential
);
...
...
@@ -221,7 +220,7 @@ class TestChebyshevDirect : public FUTester<TestChebyshevDirect> {
/** TestChebKernel */
void
TestChebKernel
(){
const
unsigned
int
ORDER
=
5
;
const
unsigned
int
ORDER
=
5
;
const
FReal
epsilon
=
FReal
(
1e-5
);
typedef
FP2PParticleContainerIndexed
ContainerClass
;
typedef
FSimpleLeaf
<
ContainerClass
>
LeafClass
;
...
...
@@ -236,8 +235,8 @@ class TestChebyshevDirect : public FUTester<TestChebyshevDirect> {
/** TestChebSymKernel */
void
TestChebSymKernel
(){
const
unsigned
int
ORDER
=
5
;
const
FReal
epsilon
=
FReal
(
1e-
5
);
const
unsigned
int
ORDER
=
7
;
const
FReal
epsilon
=
FReal
(
1e-
7
);
typedef
FP2PParticleContainerIndexed
ContainerClass
;
typedef
FSimpleLeaf
<
ContainerClass
>
LeafClass
;
typedef
FInterpMatrixKernelR
MatrixKernelClass
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment