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
......@@ -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) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment