Reduce code duplication between Berendsen and c-rescale pressure coupling
authorPascal Merz <pascal.merz@me.com>
Thu, 7 Jan 2021 08:59:03 +0000 (08:59 +0000)
committerMark Abraham <mark.j.abraham@gmail.com>
Thu, 7 Jan 2021 08:59:03 +0000 (08:59 +0000)
commit2705c6f04e2a7ec8c457a4b3252bd31b65593ed9
treefe9379d381ad37b6ab3bf121d552e8106f3b8ca7
parent3cbf1ecb9a7afa9c4e285bcfd26cab3e52bbc1a5
Reduce code duplication between Berendsen and c-rescale pressure coupling

The Berendsen and C-Rescale pressure coupling algorithms are very similar,
yet duplicate a lot of functionality. This unifies the functions using
template parameters to reduce code duplication. This is pure refactoring.
src/gromacs/mdlib/coupling.cpp
src/gromacs/mdlib/coupling.h