Fix illegal memory access in FE calculations
authorBerk Hess <hess@kth.se>
Wed, 23 Oct 2019 09:50:02 +0000 (11:50 +0200)
committerBerk Hess <hess@kth.se>
Wed, 23 Oct 2019 09:50:02 +0000 (11:50 +0200)
commitc26b330ae0623d5eaec52675ab74526e8b40644d
treeacaed8e6a21208be3761c448a79aa7d2fa9670f9
parent404259bc5b3029866f66a8c197bf997cd03a7338
Fix illegal memory access in FE calculations

With free-energy calculations not using lambda states, an output
buffer would be accessed one element beyond it's allocated size.

Note that this code should be completely refactored, but not
in a release branch.

Fixes #3173

Change-Id: I677e602ba96c9f64fbf79a626e43c9e590c18bea
docs/release-notes/2019/2019.5.rst
src/gromacs/mdlib/mdebin_bar.cpp