diff --git a/src/gravity_properties.c b/src/gravity_properties.c index a258088e5413ed6d541e2729777367a96281cf4e..1c8d2bbfaee6b8525932058006ad9fadc270ba26 100644 --- a/src/gravity_properties.c +++ b/src/gravity_properties.c @@ -108,7 +108,9 @@ void gravity_props_init(struct gravity_props *p, struct swift_params *params, if (p->theta_crit >= 1.) error("Theta too large. FMM won't converge."); /* Adaptive opening angle tolerance */ - p->adaptive_tolerance = parser_get_param_float(params, "Gravity:epsilon_fmm"); + if (p->use_adaptive_tolerance) + p->adaptive_tolerance = + parser_get_param_float(params, "Gravity:epsilon_fmm"); /* Are we allowing tree use below softening? */ p->use_tree_below_softening =