Commit c0c39697 authored by Matthieu Schaller's avatar Matthieu Schaller Committed by Matthieu Schaller
Browse files

Correct definition of a_smooth for the mesh forces.

parent 528d6422
......@@ -388,7 +388,7 @@ void pm_mesh_compute_potential(struct pm_mesh* mesh, const struct engine* e) {
/* Some common factors */
const double green_fac = -1. / (M_PI * box_size);
const double a_smooth2 =
4. * M_PI * M_PI * a_smooth * a_smooth / ((double)(N * N));
4. * M_PI * M_PI * a_smooth * a_smooth / (box_size * box_size);
const double k_fac = M_PI / (double)N;
/* Now de-convolve the CIC kernel and apply the Green function */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment