fixed incorrect virial and pressure averages
authorBerk Hess <hess@hess.theophys.kth.se>
Wed, 23 Feb 2011 12:51:24 +0000 (13:51 +0100)
committerBerk Hess <hess@hess.theophys.kth.se>
Wed, 23 Feb 2011 12:51:24 +0000 (13:51 +0100)
commitf5368beea46a2b7f125c14b29134e3a1d7bfc8f1
treed7855366b5dbd114bd89f2262c1fdb6ae1ccbc3e
parent171a9b9ed1a05573ba30e4d2c0df414df93aa34f
fixed incorrect virial and pressure averages

Removed a second, incorrect setting of flags for storage of energy averages
in mdrun.
This would cause incorrect averages of the virial and pressure to be stored
in the energy file and printed at the end of the log file when the lowest
common denominator of nstcomm, nsttcouple and/or nstpcouple was less than
nstcalcenergy. Note that the instantaneous values and the actual simulation
results were all correct.
Additionally there was a potential issue with parallel checkpoint signalling
with -gcom larger than nstlist which could lead to hanging of mdrun.
This fixes #696
src/kernel/md.c