Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
1 merge request!884Support for multiple softening lengths in the gravity solver
......@@ -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;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment