Fixed precision in thermal expansion coefficient calc.
authorDavid van der Spoel <spoel@xray.bmc.uu.se>
Mon, 23 Dec 2013 20:42:08 +0000 (21:42 +0100)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Thu, 9 Jan 2014 18:48:47 +0000 (19:48 +0100)
commita052b75ca8405fc167228fa409dfdc8337ba2aea
tree9420c8e63e0bb3baa2fd4707145bbc18596cbb78
parent765e6ad9f6b996c3ba572cfaa6dc71f396ef0cad
Fixed precision in thermal expansion coefficient calc.

Loss of accuracy was caused by different sampling
of volume and enthalpy and as a result alpha was
computed incorrectly. With the present "fix" the volume
and enthalpy are both downsampled to what is written
in the .edr file. The real fix would be to store the product
of H and V in the .edr file, but that falls outside the
4.6 branch policy.

Change-Id: I1be06d689002d7c9d6be92bf1e377912f0be1efd
src/tools/gmx_energy.c