Commit 16ea9b83 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Merge branch 'restart-fixes' into 'master'

Make sure we use the restored structs when cleaning up after restarting

See merge request !648
parents 0ac817ab 8c4eaf9a
......@@ -1224,8 +1224,8 @@ int main(int argc, char *argv[]) {
/* Clean everything */
if (with_verbose_timers) timers_close_file();
if (with_cosmology) cosmology_clean(&cosmo);
if (with_self_gravity) pm_mesh_clean(&mesh);
if (with_cosmology) cosmology_clean(e.cosmology);
if (with_self_gravity) pm_mesh_clean(e.mesh);
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