From 707dee68c9d13cc53bf60e75bafdc5800132e9c6 Mon Sep 17 00:00:00 2001
From: stamoor <stamoor@f3b2605a-c512-4ea7-a41b-209d697bcdaa>
Date: Thu, 11 Feb 2016 16:40:45 +0000
Subject: [PATCH] Adding Kokkos error check

git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@14587 f3b2605a-c512-4ea7-a41b-209d697bcdaa
---
 src/KOKKOS/kokkos.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/KOKKOS/kokkos.cpp b/src/KOKKOS/kokkos.cpp
index 0dbb1754a0..57dd6df1c3 100644
--- a/src/KOKKOS/kokkos.cpp
+++ b/src/KOKKOS/kokkos.cpp
@@ -159,7 +159,7 @@ void KokkosLMP::accelerator(int narg, char **arg)
       else if (strcmp(arg[iarg+1],"n2") == 0) neighflag = N2;
       else if (strcmp(arg[iarg+1],"full/cluster") == 0) neighflag = FULLCLUSTER;
       else error->all(FLERR,"Illegal package kokkos command");
-      if (neighflag = HALF && num_threads == 0 || ngpu == 0)
+      if (neighflag == HALF && num_threads > 1 || ngpu > 0)
         error->all(FLERR,"Must use Kokkos half/thread or full neighbor list with threads or GPU");
       iarg += 2;
     } else if (strcmp(arg[iarg],"binsize") == 0) {
-- 
GitLab