fixes issues with pressure control and infrequent evaluation
authorMichael Shirts <michael.shirts@virginia.edu>
Sun, 13 Jan 2013 17:20:57 +0000 (12:20 -0500)
committerMark Abraham <mark.j.abraham@gmail.com>
Wed, 16 Jan 2013 01:16:01 +0000 (02:16 +0100)
commitf6e7b9f55e96666f809baf41039a6afbce7cb3dd
tree9b8974fe0353ceaf5f34a63a751d0181543575f7
parent904380fce4aa8e1dea1f30a4d6691ebfd1119686
fixes issues with pressure control and infrequent evaluation

Fixes a bug when pressure control in md-vv when nstcalcenergy is not a
multiple of nstpcouple or nsttcouple. This bug results in boxes slowly
expanding to unphysical sizes because the virial is
neglected in the second half of the md-vv calculation.

Also discovered that as part of the bug, global energies were being communicated
where they did not need to be when nstpcouple and nsttcouple are > 1 in the case
of md-vv, so redid some of the iteration counting and global communication to fix
this all together. In the process, this simplified some of the interation counting.

Change-Id: I3f77ba361fc88e03ccdfdde1b0be388ea46a8683
include/types/iteratedconstraints.h
src/kernel/md.c
src/kernel/readir.c
src/mdlib/coupling.c
src/mdlib/iteratedconstraints.c