From 06ffbc8f0a0f6f0c118737e47336cb23ec55b6f2 Mon Sep 17 00:00:00 2001 From: sjplimp Date: Fri, 20 May 2011 21:33:03 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@6192 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/neighbor.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/neighbor.h b/src/neighbor.h index 97e0f354c4..607a145a73 100644 --- a/src/neighbor.h +++ b/src/neighbor.h @@ -60,7 +60,7 @@ class Neighbor : protected Pointers { int **improperlist; Neighbor(class LAMMPS *); - ~Neighbor(); + virtual ~Neighbor(); void init(); int request(void *); // another class requests a neighbor list void print_lists_of_lists(); // debug print out @@ -73,7 +73,7 @@ class Neighbor : protected Pointers { void modify_params(int, char**); // modify parameters that control builds bigint memory_usage(); - private: + protected: int me,nprocs; int maxatom; // size of atom-based NeighList arrays @@ -162,7 +162,7 @@ class Neighbor : protected Pointers { int coord2bin(double *, int &, int &, int&); // ditto int exclusion(int, int, int, int, int *, int *); // test for pair exclusion - void choose_build(int, class NeighRequest *); + virtual void choose_build(int, class NeighRequest *); void choose_stencil(int, class NeighRequest *); // pairwise build functions