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
5fd51330
Commit
5fd51330
authored
Apr 01, 2017
by
Matthieu Schaller
Browse files
Corrected the typo in the multipole drifting function that
@rgb
spotted.
parent
f83a3995
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/multipole.h
View file @
5fd51330
...
...
@@ -179,9 +179,9 @@ INLINE static void gravity_reset(struct gravity_tensors *m) {
INLINE
static
void
gravity_drift
(
struct
gravity_tensors
*
m
,
double
dt
)
{
/* Move the whole thing according to bulk motion */
m
->
CoM
[
0
]
+=
m
->
m_pole
.
vel
[
0
];
m
->
CoM
[
1
]
+=
m
->
m_pole
.
vel
[
1
];
m
->
CoM
[
2
]
+=
m
->
m_pole
.
vel
[
2
];
m
->
CoM
[
0
]
+=
m
->
m_pole
.
vel
[
0
]
*
dt
;
m
->
CoM
[
1
]
+=
m
->
m_pole
.
vel
[
1
]
*
dt
;
m
->
CoM
[
2
]
+=
m
->
m_pole
.
vel
[
2
]
*
dt
;
}
INLINE
static
void
gravity_field_tensors_init
(
struct
grav_tensor
*
l
)
{
...
...
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