From eb801501b07af4c8607c85a6dde722b7b9771125 Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <schaller@strw.leidenuniv.nl> Date: Wed, 17 Apr 2019 17:00:18 +0200 Subject: [PATCH] Do not verify the stars' smoothing length correction direction. The bisection always works anyway. --- src/runner.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/runner.c b/src/runner.c index aceb2be5c1..e1f97e6120 100644 --- a/src/runner.c +++ b/src/runner.c @@ -280,12 +280,6 @@ void runner_do_stars_ghost(struct runner *r, struct cell *c, int timer) { n_target, left[i], right[i]); } -#ifdef SWIFT_DEBUG_CHECKS - if ((f > 0.f && h_new > h_old) || (f < 0.f && h_new < h_old)) - error( - "Smoothing length correction not going in the right direction"); -#endif - /* Safety check: truncate to the range [ h_old/2 , 2h_old ]. */ h_new = min(h_new, 2.f * h_old); h_new = max(h_new, 0.5f * h_old); -- GitLab