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

Do not free the Ewald table.

parent 4b7333e0
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
......@@ -818,9 +818,6 @@ int main(int argc, char *argv[]) {
if (with_verbose_timers) timers_close_file();
engine_clean(&e);
free(params);
#ifdef SWIFT_GRAVITY_FORCE_CHECKS
if (periodic) gravity_exact_force_ewald_free();
#endif
/* Say goodbye. */
if (myrank == 0) message("done. Bye.");
......
......@@ -219,19 +219,6 @@ void gravity_exact_force_ewald_init(double boxSize) {
#endif
}
/**
* @brief Free the Ewald summation tables.
*/
void gravity_exact_force_ewald_free() {
#ifdef SWIFT_GRAVITY_FORCE_CHECKS
free(fewald_x);
free(fewald_y);
free(fewald_z);
#else
error("Gravity checking function called without the corresponding flag.");
#endif
}
#ifdef SWIFT_GRAVITY_FORCE_CHECKS
/**
* @brief Compute the Ewald correction for a given distance vector r.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment