Fix DD DLB state issue
authorBerk Hess <hess@kth.se>
Thu, 2 Jul 2015 14:03:34 +0000 (16:03 +0200)
committerErik Lindahl <erik.lindahl@gmail.com>
Sun, 5 Jul 2015 08:40:29 +0000 (10:40 +0200)
commitc1da1c9bdd3b1e43aa2349265e07d6bc7d088d31
treef9f456b1e4e6982fc3403ea8d03906187ac332f0
parent466e36339dfce3cbb7a36d43741779a39f5bd5c6
Fix DD DLB state issue

The introduction of DLB locking for PME load balancing added another
DLB state, which was stored in a third variable. These variables
were not always all properly checked. Simplified the code by merging
these three state variables into one. In added there was a fourth
variable (bGridJump) is gmx_domdec_t, this is replaced by calls to
a functions returning is DLB is on.

Refs #1760.

Change-Id: I80d499149e4e5bfd689e76208384a8ba61e2842a
src/gromacs/domdec/domdec.cpp
src/gromacs/domdec/domdec_specatomcomm.cpp
src/gromacs/legacyheaders/types/commrec.h
src/gromacs/mdlib/nsgrid.c