From d81dcbeedcc7f490c6ffcfb0fa3d1efbd3cd79f2 Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <schaller@strw.leidenuniv.nl>
Date: Thu, 18 Jul 2019 11:37:18 +0200
Subject: [PATCH] Use the correct softening length to set the minimal SPH
 smoothing length.

---
 src/hydro_properties.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/hydro_properties.c b/src/hydro_properties.c
index d823675579..0082546ce1 100644
--- a/src/hydro_properties.c
+++ b/src/hydro_properties.c
@@ -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;
 }
 
 /**
-- 
GitLab