From: Szilárd Páll Date: Thu, 25 Sep 2014 22:49:12 +0000 (+0200) Subject: Fix incorrect assertion statement X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?p=alexxy%2Fgromacs.git;a=commitdiff_plain;h=0f1df108f188a71a47a36201bebe30a799d854fe 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 --- 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) {