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
efda478c
Commit
efda478c
authored
Aug 16, 2017
by
Matthieu Schaller
Browse files
Corrected typo in 4th order derivatives.
parent
d53edf05
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/gravity_derivatives.h
View file @
efda478c
...
...
@@ -179,9 +179,9 @@ __attribute__((always_inline)) INLINE static void compute_potential_derivatives(
pot
->
D_220
=
r_x2
*
r_y2
*
r_inv9
+
r_x2
*
r_inv7
+
r_y2
*
r_inv7
+
r_inv5
;
pot
->
D_202
=
r_x2
*
r_z2
*
r_inv9
+
r_x2
*
r_inv7
+
r_z2
*
r_inv7
+
r_inv5
;
pot
->
D_022
=
r_y2
*
r_z2
*
r_inv9
+
r_y2
*
r_inv7
+
r_z2
*
r_inv7
+
r_inv5
;
pot
->
D_211
=
r_x2
*
r_y
*
r_z
*
r_inv9
+
r_y
*
r_z
*
r_inv
5
;
pot
->
D_121
=
r_y2
*
r_x
*
r_z
*
r_inv9
+
r_x
*
r_z
*
r_inv
5
;
pot
->
D_112
=
r_z2
*
r_x
*
r_z
*
r_inv9
+
r_x
*
r_y
*
r_inv
5
;
pot
->
D_211
=
r_x2
*
r_y
*
r_z
*
r_inv9
+
r_y
*
r_z
*
r_inv
7
;
pot
->
D_121
=
r_y2
*
r_x
*
r_z
*
r_inv9
+
r_x
*
r_z
*
r_inv
7
;
pot
->
D_112
=
r_z2
*
r_x
*
r_z
*
r_inv9
+
r_x
*
r_y
*
r_inv
7
;
#endif
#if SELF_GRAVITY_MULTIPOLE_ORDER > 5
#error "Missing implementation for order >5"
...
...
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