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

Use the correct softening length to set the minimal SPH smoothing length.

parent b10aeadb
......@@ -338,8 +338,7 @@ void hydro_props_update(struct hydro_props *p, const struct gravity_props *gp,
* is a fixed fraction of the radius at which the softened forces
* recover a Newtonian behaviour (i.e. 2.8 * Plummer equivalent softening
* in the case of a cubic spline kernel). */
// MATTHIEU
p->h_min = p->h_min_ratio * 1. /*gp->epsilon_cur*/ / kernel_gamma;
p->h_min = p->h_min_ratio * gp->epsilon_cur / kernel_gamma;
}
/**
......
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