From dba2abcba35b53a57460a47f1fa81d7da8a4e767 Mon Sep 17 00:00:00 2001
From: athomps <athomps@f3b2605a-c512-4ea7-a41b-209d697bcdaa>
Date: Wed, 15 Jul 2015 16:36:14 +0000
Subject: [PATCH] Remove unused ngroup calc

git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@13595 f3b2605a-c512-4ea7-a41b-209d697bcdaa
---
 src/USER-REAXC/pair_reax_c.cpp | 9 ---------
 src/USER-REAXC/pair_reax_c.h   | 2 --
 2 files changed, 11 deletions(-)

diff --git a/src/USER-REAXC/pair_reax_c.cpp b/src/USER-REAXC/pair_reax_c.cpp
index 5f49d3b02b..c79c58fe98 100644
--- a/src/USER-REAXC/pair_reax_c.cpp
+++ b/src/USER-REAXC/pair_reax_c.cpp
@@ -449,15 +449,6 @@ void PairReaxC::setup( )
 
     ReAllocate( system, control, data, workspace, &lists, mpi_data );
   }
-
-  ngroup = 0;
-  int ngroup_sum = 0;
-  for (int i = 0; i < list->inum; i++) {
-    ngroup ++;
-  }
-  MPI_Allreduce( &ngroup, &ngroup_sum, 1, MPI_INT, MPI_SUM, world );
-  ngroup = ngroup_sum;
-
 }
 
 /* ---------------------------------------------------------------------- */
diff --git a/src/USER-REAXC/pair_reax_c.h b/src/USER-REAXC/pair_reax_c.h
index 3ddeb781a6..1f7a5c9f00 100644
--- a/src/USER-REAXC/pair_reax_c.h
+++ b/src/USER-REAXC/pair_reax_c.h
@@ -57,8 +57,6 @@ class PairReaxC : public Pair {
   reax_list *lists;
   mpi_datatypes *mpi_data;
 
-  bigint ngroup;
-
  private:
   double cutmax;
   int nelements;                // # of unique elements
-- 
GitLab