Skip to content
Snippets Groups Projects
Commit 5fd51330 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Corrected the typo in the multipole drifting function that @rgb spotted.

parent f83a3995
Branches
Tags
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment