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

Reinstated incorrectly dropped update of the potential in gravity_L2P()

parent 271b1b15
No related branches found
No related tags found
1 merge request!1048Atomic gravity and time-step limiter
......@@ -2592,6 +2592,7 @@ INLINE static void gravity_L2P(const struct grav_tensor *lb,
accumulate_add_f(&gp->a_grav[0], a_grav[0]);
accumulate_add_f(&gp->a_grav[1], a_grav[1]);
accumulate_add_f(&gp->a_grav[2], a_grav[2]);
gravity_add_comoving_potential(gp, pot);
#ifdef SWIFT_GRAVITY_FORCE_CHECKS
accumulate_add_f(&gp->a_grav_m2l[0], a_grav[0]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment