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

Correct expression for softened potential in brute-force calculation.

parent 06730235
No related branches found
No related tags found
1 merge request!512Gravitational potential
......@@ -427,7 +427,7 @@ void gravity_exact_force_compute_mapper(void *map_data, int nr_gparts,
/* Get softened gravity */
f = mj * hi_inv3 * Wf;
phi = mj * hi_inv3 * Wp;
phi = mj * hi_inv * Wp;
}
a_grav[0] += f * dx;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment