g_energy gives incorrect average pressures
When using to g_energy command in versions 4.5.1 and 4.5.3 to find average thermodynamic properties after a NPT run, the interactive output gives average values for pressure (and its tensors) that do not match the energy.xvg output file. For example, in the xvg file (and in the log file) the pressures will fluctuate between 300 and -300 bar, but the g_energy output says the average value for pressure is 997 bar. This inconsistency exists the PXX, PYY, and PZZ tensors as well as the surface tension. Also, calculation of surface tension using these pressure tensors from the summary and from the output file show that each source is internally consistent, but they differ by several orders of magnitude and sometimes sign.
fixed incorrect virial and pressure averages
Removed a second, incorrect setting of flags for storage of energy averages
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
#2 Updated by Berk Hess over 8 years ago
- Category set to mdrun
- Status changed from New to Closed
- Assignee set to Berk Hess
- Target version set to 4.5.4
Fixed for 4.5.4.
The virial and pressure averages would be incorrect when the lowest
common denominator of nstcomm, nsttcouple and/or nstpcouple was less