From 8d409d8f2ee23451187adf371f5d7446fd1fd483 Mon Sep 17 00:00:00 2001 From: sjplimp Date: Thu, 20 Oct 2011 15:42:19 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@7162 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- lib/cuda/cuda_shared.h | 1 + lib/cuda/pair_manybody_const.h | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 lib/cuda/pair_manybody_const.h diff --git a/lib/cuda/cuda_shared.h b/lib/cuda/cuda_shared.h index 978a277712..a11c57dc22 100644 --- a/lib/cuda/cuda_shared.h +++ b/lib/cuda/cuda_shared.h @@ -81,6 +81,7 @@ struct cuda_shared_atom // relevent data from atom class int update_nlocal; int update_nmax; + int update_neigh; dev_array xhold; // position at last neighboring X_FLOAT triggerneighsq; // maximum square movement before reneighboring diff --git a/lib/cuda/pair_manybody_const.h b/lib/cuda/pair_manybody_const.h new file mode 100644 index 0000000000..69bf32aead --- /dev/null +++ b/lib/cuda/pair_manybody_const.h @@ -0,0 +1,16 @@ +/* + * pair_manybody_const.h + * + * Created on: Oct 11, 2011 + * Author: chmu-tph + */ + +#define MANYBODY_NPAIR 3 + +__device__ __constant__ int elem2param[(MANYBODY_NPAIR+1)*(MANYBODY_NPAIR+1)*(MANYBODY_NPAIR+1)]; +__device__ __constant__ int nelements; +__device__ __constant__ int map[MANYBODY_NPAIR+2]; +__device__ __constant__ int* _glob_numneigh_red; //number of neighbors within force cutoff (as opposed to neighbor cutoff) +__device__ __constant__ int* _glob_neighbors_red; //indices of neighbors within force cutoff +__device__ __constant__ int* _glob_neightype_red; //type of neighbors within force cutoff +