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

Missing factor of \pi in the argument of the Green function for the top-level...

Missing factor of \pi in the argument of the Green function for the top-level mesh potential calculation.
parent d6c10934
No related branches found
No related tags found
No related merge requests found
......@@ -222,7 +222,8 @@ void runner_do_grav_fft(struct runner* r, int timer) {
/* Some common factors */
const double green_fac = -1. / (M_PI * box_size);
const double a_smooth2 = 4. * M_PI * a_smooth * a_smooth / ((double)(N * N));
const double a_smooth2 =
4. * M_PI * M_PI * a_smooth * a_smooth / ((double)(N * N));
const double k_fac = M_PI / (double)N;
/* Now de-convolve the CIC kernel and apply the Green function */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment