From f8440a6eef6d444f790cf366e95a9519d691a3d0 Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <matthieu.schaller@durham.ac.uk> Date: Mon, 22 Aug 2016 18:40:23 +0100 Subject: [PATCH] Clean-up allocated memory at the end of a dry run. --- examples/main.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/examples/main.c b/examples/main.c index e1eace107a..2abbef1e5d 100644 --- a/examples/main.c +++ b/examples/main.c @@ -266,18 +266,6 @@ int main(int argc, char *argv[]) { message("sizeof(struct cell) is %4zi bytes.", sizeof(struct cell)); } -/* Temporary abort to handle absence of vectorized functions */ -#ifdef WITH_VECTORIZATION - -#ifdef MINIMAL_SPH - error( - "Vectorized version of Minimal SPH routines not implemented yet. " - "Reconfigure with --disable-vec and recompile or use DEFAULT_SPH."); -#endif - -#endif - /* End temporary fix */ - /* How vocal are we ? */ const int talking = (verbose == 1 && myrank == 0) || (verbose == 2); @@ -479,6 +467,8 @@ int main(int argc, char *argv[]) { #endif if (myrank == 0) message("Time integration ready to start. End of dry-run."); + engine_clean(&e); + free(params); return 0; } -- GitLab