Commit 209c4e50 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Correct expression for softened potential in brute-force calculation.

parent 06730235
...@@ -427,7 +427,7 @@ void gravity_exact_force_compute_mapper(void *map_data, int nr_gparts, ...@@ -427,7 +427,7 @@ void gravity_exact_force_compute_mapper(void *map_data, int nr_gparts,
/* Get softened gravity */ /* Get softened gravity */
f = mj * hi_inv3 * Wf; f = mj * hi_inv3 * Wf;
phi = mj * hi_inv3 * Wp; phi = mj * hi_inv * Wp;
} }
a_grav[0] += f * dx; a_grav[0] += f * dx;
......
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