From 170839af68460594da2ca07a22906f6f586a8228 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Szil=C3=A1rd=20P=C3=A1ll?= Date: Thu, 5 Oct 2017 03:20:10 +0200 Subject: [PATCH] Fix pair list array assertion Was caught by the clang CUDA build. Refs #2259 Change-Id: I8633e48ea5c33225829f92f60c2c785f16e17aca --- src/gromacs/mdlib/nbnxn_gpu_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gromacs/mdlib/nbnxn_gpu_common.h b/src/gromacs/mdlib/nbnxn_gpu_common.h index 90adc5fb21..334ee76b29 100644 --- a/src/gromacs/mdlib/nbnxn_gpu_common.h +++ b/src/gromacs/mdlib/nbnxn_gpu_common.h @@ -61,7 +61,7 @@ */ static inline bool canSkipWork(const gmx_nbnxn_gpu_t *nb, int iloc) { - assert(nb && nb->plist); + assert(nb && nb->plist[iloc]); return (iloc == eintNonlocal) && (nb->plist[iloc]->nsci == 0); } -- 2.11.4.GIT