Add missing GMX_ASSERT(haveCopiedXFromGpu)
authorAndrey Alekseenko <al42and@gmail.com>
Wed, 24 Mar 2021 10:52:51 +0000 (13:52 +0300)
committerArtem Zhmurov <zhmurov@gmail.com>
Wed, 24 Mar 2021 11:04:41 +0000 (11:04 +0000)
commitda5bc372d12a6952651f018d4910aa332c584766
tree9bf09a45afedc41ecd83c6dc3bb3574390eb78f9
parentd5f634cd2276964d184ecf4490fc50b8116a40c5
Add missing GMX_ASSERT(haveCopiedXFromGpu)

We make this assertion every time we call
stateGpu->waitCoordinatesReadyOnHost(AtomLocality::Local) in the
do_force function.

This does not fix any bugs, just makes the code a bit more consistent in
how it checks self-consistency.

Refs #3988.
src/gromacs/mdlib/sim_util.cpp