biod.pnpi.spb.ru
/
alexxy
/
gromacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Simplify GPU force reduction conditionals
[alexxy/gromacs.git]
/
src
/
gromacs
/
mdlib
/
gpuforcereduction_impl.cpp
diff --git
a/src/gromacs/mdlib/gpuforcereduction_impl.cpp
b/src/gromacs/mdlib/gpuforcereduction_impl.cpp
index 3de3002b3ac3c72a6b79de09e1b59b92d8791543..2b4a4a1784400a98a55e5e816860dc13b228bea6 100644
(file)
--- a/
src/gromacs/mdlib/gpuforcereduction_impl.cpp
+++ b/
src/gromacs/mdlib/gpuforcereduction_impl.cpp
@@
-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);
}