Fix conditional on when DtoH forces copy occur
authorArtem Zhmurov <zhmurov@gmail.com>
Wed, 31 Mar 2021 00:30:33 +0000 (00:30 +0000)
committerMark Abraham <mark.j.abraham@gmail.com>
Wed, 31 Mar 2021 00:30:33 +0000 (00:30 +0000)
commitf3453fe893db5c5696447977086793bf4423ed01
tree8956dcfce959f263a9bd3327498f08bcb86bf98a
parent42bea84075544680a2a23cbcda62b326271d7d4c
Fix conditional on when DtoH forces copy occur

d2d4a50b4c636c203028c5bff311924ec15e7825 introduced performance
regression with forces copied from device to host on each step.
This fixes the issue by reinstantiating proper condition on the
copy call.

Fixes #4001
Refs #2608
src/gromacs/nbnxm/nbnxm_gpu_data_mgmt.cpp