fixed resetting states with parallel Verlet scheme
authorBerk Hess <hess@kth.se>
Fri, 11 Jan 2013 16:55:23 +0000 (17:55 +0100)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Sun, 13 Jan 2013 22:39:30 +0000 (23:39 +0100)
The simulation state might need to be reset with e.g. REMD
or energy minimization. With the Verlet scheme in parallel
the contents of one outdated array was used, leading to gmx_fatal.
Fixes #1024

Change-Id: I24d07ea7dfd41e9689dd083cafbf778a7c8033fd

src/mdlib/domdec.c

index 9d6bdc6c38965c59b931e8ea11dd75a9c32e507c..a441edf36f0fd28da28662ed926a990e9c67a6e2 100644 (file)
@@ -9351,7 +9351,7 @@ void dd_partition_system(FILE            *fplog,
                               comm->zones.dens_zone0,
                               fr->cginfo,
                               state_local->x,
-                              ncg_moved,comm->moved,
+                              ncg_moved,bRedist ? comm->moved : NULL,
                               fr->nbv->grp[eintLocal].kernel_type,
                               fr->nbv->grp[eintLocal].nbat);