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
1b1a523d
Commit
1b1a523d
authored
Sep 11, 2017
by
Matthieu Schaller
Browse files
Call the correct function for the M2L derivative checks.
parent
eb07db4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/testGravityDerivatives.c
View file @
1b1a523d
...
@@ -954,8 +954,8 @@ int main() {
...
@@ -954,8 +954,8 @@ int main() {
const
double
r_inv
=
1
.
/
sqrt
(
r2
);
const
double
r_inv
=
1
.
/
sqrt
(
r2
);
/* Compute all derivatives */
/* Compute all derivatives */
struct
potential_derivatives
pot
;
struct
potential_derivatives
_M2L
pot
;
compute_potential_derivatives
(
dx
,
dy
,
dz
,
r2
,
r_inv
,
0
.,
0
.,
FLT_MAX
,
&
pot
);
compute_potential_derivatives
_M2L
(
dx
,
dy
,
dz
,
r2
,
r_inv
,
0
.,
FLT_MAX
,
&
pot
);
/* Minimal value we care about */
/* Minimal value we care about */
const
double
min
=
1e-9
;
const
double
min
=
1e-9
;
...
...
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