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
Branches
Tags
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, ...@@ -113,7 +113,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.001) if (Omega_frac < 0. || Omega_frac > 1.01)
error("Invalid fraction of material to distribute. Omega_frac=%e", error("Invalid fraction of material to distribute. Omega_frac=%e",
Omega_frac); Omega_frac);
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment