Fixes for clang-tidy-9
[alexxy/gromacs.git] / src / gromacs / ewald / pme_force_sender_gpu_impl.cpp
index 3ae502ccd8373589a330ddf9c801d5490a61e221..aa046ee718d307236bbef46d82f3082284122baa 100644 (file)
@@ -66,7 +66,7 @@ PmeForceSenderGpu::PmeForceSenderGpu(const DeviceStream& /*pmeStream */,
                                      gmx::ArrayRef<PpRanks> /* ppRanks */) :
     impl_(nullptr)
 {
-    GMX_ASSERT(false,
+    GMX_ASSERT(!impl_,
                "A CPU stub for PME-PP GPU communication was called instead of the correct "
                "implementation.");
 }
@@ -76,14 +76,14 @@ PmeForceSenderGpu::~PmeForceSenderGpu() = default;
 /*!\brief init PME-PP GPU communication stub */
 void PmeForceSenderGpu::sendForceBufferAddressToPpRanks(rvec* /* d_f */)
 {
-    GMX_ASSERT(false,
+    GMX_ASSERT(!impl_,
                "A CPU stub for PME-PP GPU communication initialization was called instead of the "
                "correct implementation.");
 }
 
 void PmeForceSenderGpu::sendFToPpCudaDirect(int /* ppRank */)
 {
-    GMX_ASSERT(false,
+    GMX_ASSERT(!impl_,
                "A CPU stub for PME-PP GPU communication was called instead of the correct "
                "implementation.");
 }