Skip to content
Snippets Groups Projects
Commit 2c0342a7 authored by John Helly's avatar John Helly
Browse files

Added missing MPI_Finalize in main_fof.c

parent 58c5271a
No related branches found
No related tags found
1 merge request!543Fof
...@@ -1077,6 +1077,11 @@ int main(int argc, char *argv[]) { ...@@ -1077,6 +1077,11 @@ int main(int argc, char *argv[]) {
engine_print_stats(&e); engine_print_stats(&e);
engine_dump_snapshot(&e); engine_dump_snapshot(&e);
#ifdef WITH_MPI
if ((res = MPI_Finalize()) != MPI_SUCCESS)
error("call to MPI_Finalize failed with error %i.", res);
#endif
/* Clean everything */ /* Clean everything */
if (with_verbose_timers) timers_close_file(); if (with_verbose_timers) timers_close_file();
if (with_cosmology) cosmology_clean(&cosmo); if (with_cosmology) cosmology_clean(&cosmo);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment