Fix incorrect assertion statement
authorSzilárd Páll <pszilard@kth.se>
Thu, 25 Sep 2014 22:49:12 +0000 (00:49 +0200)
committerSzilárd Páll <pszilard@kth.se>
Fri, 26 Sep 2014 01:06:28 +0000 (03:06 +0200)
Copy-paste bug that was totally harmless as we've always had more
electrostatics than VdW kernel types, but it did render the assertion
incorrect.

Change-Id: I996bef6342cbb9bb8ce8994f38cac61924f6af1f

src/gromacs/mdlib/nbnxn_cuda/nbnxn_cuda.cu

index 440c074db3b9518cfb2da8b8769e7084f6464be8..d02e9034104480e733b0d4bdadd3827ba00eccb2 100644 (file)
@@ -210,7 +210,7 @@ static inline nbnxn_cu_kfunc_ptr_t select_nbnxn_kernel(int  eeltype,
     nbnxn_cu_kfunc_ptr_t res;
 
     assert(eeltype < eelCuNR);
-    assert(evdwtype < eelCuNR);
+    assert(evdwtype < evdwCuNR);
 
     if (bDoEne)
     {