Skip to content
Snippets Groups Projects
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
Branches
Tags
2 merge requests!566Periodic gravity calculation,!565Mesh force task
...@@ -388,7 +388,7 @@ void pm_mesh_compute_potential(struct pm_mesh* mesh, const struct engine* e) { ...@@ -388,7 +388,7 @@ void pm_mesh_compute_potential(struct pm_mesh* mesh, const struct engine* e) {
/* Some common factors */ /* Some common factors */
const double green_fac = -1. / (M_PI * box_size); const double green_fac = -1. / (M_PI * box_size);
const double a_smooth2 = 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; const double k_fac = M_PI / (double)N;
/* Now de-convolve the CIC kernel and apply the Green function */ /* 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