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

Better choice of tolerance for the check.

parent 617a06d0
No related branches found
No related tags found
1 merge request!949Fix rounding error problem in the enrichment routines.
......@@ -113,7 +113,7 @@ runner_iact_nonsym_feedback_apply(const float r2, const float *dx,
}
#ifdef SWIFT_DEBUG_CHECKS
if (Omega_frac < 0. || Omega_frac > 1.001)
if (Omega_frac < 0. || Omega_frac > 1.01)
error("Invalid fraction of material to distribute. Omega_frac=%e",
Omega_frac);
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment