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

Do not attempt to free the mesh when running without periodic BCs

parent d0a58372
No related branches found
No related tags found
1 merge request!1548Mayor Sync
...@@ -1848,7 +1848,7 @@ int main(int argc, char *argv[]) { ...@@ -1848,7 +1848,7 @@ int main(int argc, char *argv[]) {
if (with_cosmology) cosmology_clean(e.cosmology); if (with_cosmology) cosmology_clean(e.cosmology);
if (e.neutrino_properties->use_linear_response) if (e.neutrino_properties->use_linear_response)
neutrino_response_clean(e.neutrino_response); neutrino_response_clean(e.neutrino_response);
if (with_self_gravity) pm_mesh_clean(e.mesh); if (with_self_gravity && s.periodic) pm_mesh_clean(e.mesh);
if (with_stars) stars_props_clean(e.stars_properties); if (with_stars) stars_props_clean(e.stars_properties);
if (with_cooling || with_temperature) cooling_clean(e.cooling_func); if (with_cooling || with_temperature) cooling_clean(e.cooling_func);
if (with_feedback) feedback_clean(e.feedback_props); if (with_feedback) feedback_clean(e.feedback_props);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment