From fb0ae8629bd88617d78a79161659db4904cff6b5 Mon Sep 17 00:00:00 2001 From: sjplimp Date: Tue, 1 Apr 2014 22:24:38 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@11677 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/MANYBODY/pair_adp.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/MANYBODY/pair_adp.cpp b/src/MANYBODY/pair_adp.cpp index c9b290a0a6..203bf0d1ce 100644 --- a/src/MANYBODY/pair_adp.cpp +++ b/src/MANYBODY/pair_adp.cpp @@ -193,6 +193,7 @@ void PairADP::compute(int eflag, int vflag) for (jj = 0; jj < jnum; jj++) { j = jlist[jj]; + j &= NEIGHMASK; delx = xtmp - x[j][0]; dely = ytmp - x[j][1]; @@ -293,6 +294,7 @@ void PairADP::compute(int eflag, int vflag) for (jj = 0; jj < jnum; jj++) { j = jlist[jj]; + j &= NEIGHMASK; delx = xtmp - x[j][0]; dely = ytmp - x[j][1];