Merge commit d30f2cb6 from release-2020 into master
[alexxy/gromacs.git] / src / gromacs / mdlib / forcerec.cpp
index 9440cf8f088e99c42c1f1737eb7df1d9705914ef..adfb6caf090e7a8d97387b39fc1585f9440f08bb 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Copyright (c) 1991-2000, University of Groningen, The Netherlands.
  * Copyright (c) 2001-2004, The GROMACS development team.
- * Copyright (c) 2013-2019, by the GROMACS development team, led by
+ * Copyright (c) 2013-2019,2020, by the GROMACS development team, led by
  * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
  * and including many others, as listed in the AUTHORS file in the
  * top-level source directory and at http://www.gromacs.org.
@@ -1427,7 +1427,7 @@ void init_forcerec(FILE*                            fp,
 
         if (useGpuForBonded)
         {
-            auto stream = DOMAINDECOMP(cr)
+            auto stream = havePPDomainDecomposition(cr)
                                   ? Nbnxm::gpu_get_command_stream(
                                             fr->nbv->gpu_nbv, gmx::InteractionLocality::NonLocal)
                                   : Nbnxm::gpu_get_command_stream(fr->nbv->gpu_nbv,