Commit b003e53f authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Fix typo in the gpart time integration when using both self gravity and an external potential

parent 99d363cc
......@@ -97,7 +97,7 @@ __attribute__((always_inline)) INLINE static integertime_t get_gpart_timestep(
const float a_hydro[3] = {0.f, 0.f, 0.f};
if (e->policy & engine_policy_self_gravity)
new_dt_ext = gravity_compute_timestep_self(
new_dt_self = gravity_compute_timestep_self(
gp, a_hydro, e->gravity_properties, e->cosmology);
/* Take the minimum of all */
Markdown is supported
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