From 0f1df108f188a71a47a36201bebe30a799d854fe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Szil=C3=A1rd=20P=C3=A1ll?= Date: Fri, 26 Sep 2014 00:49:12 +0200 Subject: [PATCH] Fix incorrect assertion statement 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gromacs/mdlib/nbnxn_cuda/nbnxn_cuda.cu b/src/gromacs/mdlib/nbnxn_cuda/nbnxn_cuda.cu index 440c074db3..d02e903410 100644 --- a/src/gromacs/mdlib/nbnxn_cuda/nbnxn_cuda.cu +++ b/src/gromacs/mdlib/nbnxn_cuda/nbnxn_cuda.cu @@ -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) { -- 2.22.0