From 5c6692f82c00d7d86ee2cc35d38f68cc90f601be Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <matthieu.schaller@durham.ac.uk> Date: Wed, 8 May 2019 15:34:16 +0100 Subject: [PATCH] Improve error message in the EAGLE feedback routine. --- src/feedback/EAGLE/feedback_iact.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/feedback/EAGLE/feedback_iact.h b/src/feedback/EAGLE/feedback_iact.h index 63d5332f4d..5b707cbfd2 100644 --- a/src/feedback/EAGLE/feedback_iact.h +++ b/src/feedback/EAGLE/feedback_iact.h @@ -116,7 +116,7 @@ runner_iact_nonsym_feedback_apply(const float r2, const float *dx, #ifdef SWIFT_DEBUG_CHECKS if (Omega_frac < 0. || Omega_frac > 1.) - error("Invalid fraction of material to dsitribute."); + error("Invalid fraction of material to dsitribute. Omega_frac=%e", Omega_frac); #endif /* Update particle mass */ @@ -299,10 +299,10 @@ runner_iact_nonsym_feedback_apply(const float r2, const float *dx, hydro_set_physical_internal_energy(pj, xpj, cosmo, u_new); hydro_set_drifted_physical_internal_energy(pj, cosmo, u_new); - /* message( */ - /* "We did some heating! id %llu star id %llu probability %.5e " */ - /* "random_num %.5e du %.5e du/ini %.5e", */ - /* pj->id, si->id, prob, rand, delta_u, delta_u / u_init); */ + message( + "We did some heating! id %llu star id %llu probability %.5e " + "random_num %.5e du %.5e du/ini %.5e", + pj->id, si->id, prob, rand, delta_u, delta_u / u_init); } } } -- GitLab