Fix pressure coupling with GPU update
authorArtem Zhmurov <zhmurov@gmail.com>
Tue, 12 Nov 2019 10:54:35 +0000 (11:54 +0100)
committerArtem Zhmurov <zhmurov@gmail.com>
Thu, 28 Nov 2019 15:02:26 +0000 (16:02 +0100)
commitc18a7c9a667b206b1c59d7189d20f89168869873
tree67d5440354331daa887dc71f1e86d3c02cdcdd19
parentd0509365328604985ec1d261599b2740954f79ab
Fix pressure coupling with GPU update

This fixes the pressure coupling Parrinello-Rahman and
Berendsen schemes when Update is offloaded to the GPU.
The coordinate scaling is performed on GPU. The PBC
data is also copied to device when periodic box is
updated by the pressure coupling.

Fixes #3182.

Change-Id: I57226c9f0fa249cb018d38b653a6ecb3ffd9c7c2
src/gromacs/mdlib/coupling.cpp
src/gromacs/mdlib/sim_util.cpp
src/gromacs/mdlib/update.cpp
src/gromacs/mdlib/update.h
src/gromacs/mdrun/md.cpp
src/gromacs/taskassignment/decidegpuusage.cpp