From 6676e211832537bb97702a71fc074c7ff32ff76c Mon Sep 17 00:00:00 2001 From: sjplimp Date: Fri, 23 Apr 2010 20:35:56 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@4046 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/neigh_derive.cpp | 6 ++++-- src/neigh_respa.cpp | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/neigh_derive.cpp b/src/neigh_derive.cpp index 7f10d17d03..022e011880 100644 --- a/src/neigh_derive.cpp +++ b/src/neigh_derive.cpp @@ -138,8 +138,10 @@ void Neighbor::half_from_full_newton(NeighList *list) } else { if (j >= nall) j %= nall; if (x[j][2] < ztmp) continue; - if (x[j][2] == ztmp && x[j][1] < ytmp) continue; - if (x[j][2] == ztmp && x[j][1] == ytmp && x[j][0] < xtmp) continue; + if (x[j][2] == ztmp) { + if (x[j][1] < ytmp) continue; + if (x[j][1] == ytmp && x[j][0] < xtmp) continue; + } } neighptr[n++] = joriginal; } diff --git a/src/neigh_respa.cpp b/src/neigh_respa.cpp index 5d33abace7..daed5d6793 100644 --- a/src/neigh_respa.cpp +++ b/src/neigh_respa.cpp @@ -276,7 +276,7 @@ void Neighbor::respa_nsq_newton(NeighList *list) if ((itag+jtag) % 2 == 1) continue; } else { if (x[j][2] < ztmp) continue; - else if (x[j][2] == ztmp) { + if (x[j][2] == ztmp) { if (x[j][1] < ytmp) continue; if (x[j][1] == ytmp && x[j][0] < xtmp) continue; }