Skip to content
Snippets Groups Projects
Commit 5c6692f8 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Improve error message in the EAGLE feedback routine.

parent a60f41c6
No related branches found
No related tags found
1 merge request!805Communication tasks for on-the-fly star formation
...@@ -116,7 +116,7 @@ runner_iact_nonsym_feedback_apply(const float r2, const float *dx, ...@@ -116,7 +116,7 @@ runner_iact_nonsym_feedback_apply(const float r2, const float *dx,
#ifdef SWIFT_DEBUG_CHECKS #ifdef SWIFT_DEBUG_CHECKS
if (Omega_frac < 0. || Omega_frac > 1.) 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 #endif
/* Update particle mass */ /* Update particle mass */
...@@ -299,10 +299,10 @@ runner_iact_nonsym_feedback_apply(const float r2, const float *dx, ...@@ -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_physical_internal_energy(pj, xpj, cosmo, u_new);
hydro_set_drifted_physical_internal_energy(pj, cosmo, u_new); hydro_set_drifted_physical_internal_energy(pj, cosmo, u_new);
/* message( */ message(
/* "We did some heating! id %llu star id %llu probability %.5e " */ "We did some heating! id %llu star id %llu probability %.5e "
/* "random_num %.5e du %.5e du/ini %.5e", */ "random_num %.5e du %.5e du/ini %.5e",
/* pj->id, si->id, prob, rand, delta_u, delta_u / u_init); */ pj->id, si->id, prob, rand, delta_u, delta_u / u_init);
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment