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

Apply the same change to the stars_iact function.

parent 091b6595
No related branches found
No related tags found
1 merge request!949Fix rounding error problem in the enrichment routines.
......@@ -42,9 +42,8 @@ runner_iact_nonsym_stars_density(const float r2, const float *dx,
float wi, wi_dx;
/* Get r and 1/r. */
const float r_inv = 1.0f / sqrtf(r2);
const float r = r2 * r_inv;
/* Get r. */
const float r = sqrtf(r2);
/* Compute the kernel function */
const float hi_inv = 1.0f / hi;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment