From 327eecabcd984714cabce81f4a8923194e138e8f Mon Sep 17 00:00:00 2001 From: loikki <loic.hausammann@protonmail.ch> Date: Tue, 25 Sep 2018 09:06:17 +0200 Subject: [PATCH] Print star max h only if not FLT_MAX --- src/stars/Default/stars_io.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/stars/Default/stars_io.h b/src/stars/Default/stars_io.h index 4c8f1fd2e7..d41a13a5b8 100644 --- a/src/stars/Default/stars_io.h +++ b/src/stars/Default/stars_io.h @@ -142,7 +142,8 @@ INLINE static void stars_props_print(const struct stars_props *sp) { "(max|dlog(h)/dt|=%f).", pow_dimension(expf(sp->log_max_h_change)), sp->log_max_h_change); - message("Maximal smoothing length allowed: %.4f", sp->h_max); + if (sp->h_max != FLT_MAX) + message("Maximal smoothing length allowed: %.4f", sp->h_max); message("Maximal iterations in ghost task set to %d", sp->max_smoothing_iterations); -- GitLab