diff --git a/src/engine.c b/src/engine.c index 2786a62a5daf108a3eb71c58b1e2f4fdaacd2382..659e3c9147fbe936f14e39227dbb7f2f1e9e6249 100644 --- a/src/engine.c +++ b/src/engine.c @@ -3190,7 +3190,7 @@ void engine_makeproxies(struct engine *e) { /* Gravity needs to take the opening angle into account */ if (with_gravity) { - const double distance = 2. * r_max * theta_crit_inv; + const double distance = 4. * r_max * theta_crit_inv; delta_cells = (int)(distance / cells[0].dmin) + 1; } diff --git a/src/engine_maketasks.c b/src/engine_maketasks.c index c2fa9eef4cbace20e5b56b4477a1d37cc4ee81f0..36686ed94913cedb66c3fdb01b08fc201514d531 100644 --- a/src/engine_maketasks.c +++ b/src/engine_maketasks.c @@ -1336,7 +1336,7 @@ void engine_make_self_gravity_tasks_mapper(void *map_data, int num_elements, const double max_distance2 = max_distance * max_distance; /* Compute how many cells away we need to walk */ - const double distance = 2.5 * cells[0].width[0] / theta_crit; + const double distance = 5. * cells[0].width[0] / theta_crit; int delta = (int)(distance / cells[0].width[0]) + 1; int delta_m = delta; int delta_p = delta;