From 0c8af0704e7a63e050605243885c29212b3eaff5 Mon Sep 17 00:00:00 2001
From: Stan Moore <stamoor@sandia.gov>
Date: Tue, 16 Jan 2018 16:43:25 -0700
Subject: [PATCH] Tweak to npair_halffull_newtoff.cpp

---
 src/npair_halffull_newtoff.cpp | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/src/npair_halffull_newtoff.cpp b/src/npair_halffull_newtoff.cpp
index 27edb8aa56..84816f07b2 100644
--- a/src/npair_halffull_newtoff.cpp
+++ b/src/npair_halffull_newtoff.cpp
@@ -82,12 +82,5 @@ void NPairHalffullNewtoff::build(NeighList *list)
   }
 
   list->inum = inum;
-  if (list->ghost) {
-    int num = 0;
-    for (i = 0; i < inum; i++)
-      if (ilist[i] < nlocal) num++;
-      else break;
-    list->inum = num;
-    list->gnum = inum - num;
-  }
+  if (list->ghost) list->gnum = list->listfull->gnum;
 }
-- 
GitLab