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
SWIFT
SWIFTsim
Commits
de2ca25f
Commit
de2ca25f
authored
Sep 28, 2017
by
Matthieu Schaller
Browse files
Updated too stringent limit for the calculation of the gravity derivatives.
parent
a207d0bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/testGravityDerivatives.c
View file @
de2ca25f
...
...
@@ -985,7 +985,7 @@ int main() {
#endif
#if SELF_GRAVITY_MULTIPOLE_ORDER > 2
tol
*=
2
.;
tol
*=
2
.
5
;
/* 3rd order terms */
test
(
pot
.
D_300
,
D_300
(
dx
,
dy
,
dz
,
r_inv
),
tol
,
min
,
"D_300"
);
...
...
@@ -1018,10 +1018,9 @@ int main() {
test
(
pot
.
D_121
,
D_121
(
dx
,
dy
,
dz
,
r_inv
),
tol
,
min
,
"D_121"
);
test
(
pot
.
D_112
,
D_112
(
dx
,
dy
,
dz
,
r_inv
),
tol
,
min
,
"D_112"
);
#endif
#if SELF_GRAVITY_MULTIPOLE_ORDER > 4
tol
*=
2
.;
tol
*=
2
.
5
;
/* 5th order terms */
test
(
pot
.
D_500
,
D_500
(
dx
,
dy
,
dz
,
r_inv
),
tol
,
min
,
"D_500"
);
...
...
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