Fix segfault in pull reading
[alexxy/gromacs.git] / src / gromacs / taskassignment / decidegpuusage.cpp
index 020e6187c1803268c0991549b8f02a2b0a369df2..eb88b85d87d8be21e11694a5df8abff2995b6c48 100644 (file)
@@ -640,7 +640,7 @@ bool decideWhetherToUseGpuForUpdate(const bool                     isDomainDecom
     {
         errorMessage += "Essential dynamics is not supported.\n";
     }
-    if (inputrec.bPull && pull_have_constraint(inputrec.pull))
+    if (inputrec.bPull && pull_have_constraint(*inputrec.pull))
     {
         errorMessage += "Constraints pulling is not supported.\n";
     }