Fix bug resetting mdatoms masses to lambda=0 state
authorPascal Merz <pascal.merz@me.com>
Wed, 30 Sep 2020 07:25:45 +0000 (07:25 +0000)
committerPaul Bauer <paul.bauer.q@gmail.com>
Wed, 30 Sep 2020 07:25:45 +0000 (07:25 +0000)
commitd1af2cb2bdfe017f09c0a3886681cf0af399331e
tree9d1256ae7402366943e188908171fa21ec7f2476
parent263a6dcf5c35f55356fc11b9978f9fd6eb9bf1a4
Fix bug resetting mdatoms masses to lambda=0 state

When DD is used, the mdatoms masses were reset to their lambda=0 state
after every DD step. This is fixed by making the DomDecHelper aware of
the FEP element.

Note that the use of MDAtoms should likely be revisited to allow for a
more elegant solution, but this would likely require changes which are
less local than the proposed solution here. Further development is
therefore deferred to #3700.
docs/release-notes/2020/2020.4.rst
src/gromacs/modularsimulator/domdechelper.cpp
src/gromacs/modularsimulator/domdechelper.h
src/gromacs/modularsimulator/freeenergyperturbationelement.cpp
src/gromacs/modularsimulator/freeenergyperturbationelement.h
src/gromacs/modularsimulator/modularsimulator.cpp