Commit 3d03d0ad authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Do not free the Ewald table.

parent 4b7333e0
...@@ -818,9 +818,6 @@ int main(int argc, char *argv[]) { ...@@ -818,9 +818,6 @@ int main(int argc, char *argv[]) {
if (with_verbose_timers) timers_close_file(); if (with_verbose_timers) timers_close_file();
engine_clean(&e); engine_clean(&e);
free(params); free(params);
#ifdef SWIFT_GRAVITY_FORCE_CHECKS
if (periodic) gravity_exact_force_ewald_free();
#endif
/* Say goodbye. */ /* Say goodbye. */
if (myrank == 0) message("done. Bye."); if (myrank == 0) message("done. Bye.");
......
...@@ -219,19 +219,6 @@ void gravity_exact_force_ewald_init(double boxSize) { ...@@ -219,19 +219,6 @@ void gravity_exact_force_ewald_init(double boxSize) {
#endif #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 #ifdef SWIFT_GRAVITY_FORCE_CHECKS
/** /**
* @brief Compute the Ewald correction for a given distance vector r. * @brief Compute the Ewald correction for a given distance vector r.
......
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