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

Only compile the Ewald interpolation function when running the Gravity checks.

parent dfb84c2b
No related branches found
No related tags found
1 merge request!398Use particle caches for the gravity P-P interactions. Ewald summation for the gravity force checks
......@@ -232,6 +232,7 @@ void gravity_exact_force_ewald_free() {
#endif
}
#ifdef SWIFT_GRAVITY_FORCE_CHECKS
/**
* @brief Compute the Ewald correction for a given distance vector r.
*
......@@ -305,6 +306,7 @@ gravity_exact_force_ewald_evaluate(double rx, double ry, double rz,
corr[2] += fewald_z[i + 1][j + 1][k + 1] * dx * dy * dz;
corr[2] *= s_z;
}
#endif
/**
* @brief Checks whether the file containing the exact accelerations for
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment