From 93a3bc696acab4cae3e04f15ac091b465ca7f588 Mon Sep 17 00:00:00 2001 From: Berk Hess Date: Mon, 28 Oct 2013 15:11:27 +0100 Subject: [PATCH] corrected volume with serial NPT replica exchange Replica exchange with replicas run in serial would only update x and v, not the other state data. This gave incorrect volumes with NPT replica exchange. Fixes #1362 Change-Id: Ib726fbb75e800c624ef61f31e76a5d4a4e408b9c --- src/kernel/repl_ex.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/kernel/repl_ex.c b/src/kernel/repl_ex.c index 60cd71848a..3bbb3f94ef 100644 --- a/src/kernel/repl_ex.c +++ b/src/kernel/repl_ex.c @@ -1343,6 +1343,10 @@ gmx_bool replica_exchange(FILE *fplog, const t_commrec *cr, struct gmx_repl_ex * pd_collect_state(cr, state); } } + else + { + copy_state_nonatomdata(state_local, state); + } if (MASTER(cr)) { -- 2.22.0