Simplify GPU force reduction conditionals
[alexxy/gromacs.git] / src / gromacs / mdlib / gpuforcereduction_impl.cpp
index 3de3002b3ac3c72a6b79de09e1b59b92d8791543..2b4a4a1784400a98a55e5e816860dc13b228bea6 100644 (file)
@@ -110,6 +110,7 @@ void GpuForceReduction::Impl::registerRvecForce(DeviceBuffer<RVec> forcePtr)
 
 void GpuForceReduction::Impl::addDependency(GpuEventSynchronizer* dependency)
 {
+    GMX_ASSERT(dependency != nullptr, "Force reduction dependency synchronizer should not be NULL");
     dependencyList_.push_back(dependency);
 }