Free topology in non-DD simulations
authorKevin Boyd <kevin.boyd@uconn.edu>
Wed, 2 Jan 2019 01:22:59 +0000 (20:22 -0500)
committerPaul Bauer <paul.bauer.q@gmail.com>
Wed, 2 Jan 2019 12:39:28 +0000 (13:39 +0100)
Followup to commit 0926c8a6

Without DD, a number of fields in the localtop are dynamically
allocated and not freed, but functionality existed to free them
that hadn't been called.

Change-Id: I82b8d08234722dfd8d8d3f948512458ee105c5ad

src/gromacs/mdrun/md.cpp

index 7da1d2e46bf8176fb3a516ef755c00629ab87d99..1d8eef6d6068eaa2f26a8795bd9127e4b8422b88 100644 (file)
@@ -1533,7 +1533,7 @@ void gmx::Integrator::do_md()
     /* Clean up topology. top->atomtypes has an allocated pointer if no domain decomposition*/
     if (!DOMAINDECOMP(cr))
     {
-        done_atomtypes(&top->atomtypes);
+        done_localtop(top);
     }
     sfree(top);
 }