git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@12955 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp
2015-01-19 23:38:26 +00:00
parent a080316187
commit e72afc5488
13 changed files with 61 additions and 23 deletions

View File

@ -90,7 +90,7 @@ void NeighRequest::archive()
/* ----------------------------------------------------------------------
compare this request to other request
identical means all params set by requester are the same
identical means all params set by requestor are the same
compare to original values in other if Neighbor may have changed them
return 1 if identical, 0 if not
------------------------------------------------------------------------- */
@ -100,10 +100,15 @@ int NeighRequest::identical(NeighRequest *other)
int same = 1;
// set same = 0 if old list was never processed
// use of requestor_instance and instance counter
// prevents an old fix from being unfix/refix in same memory location
// and appearing to be old, when it is really new
// only needed for classes with persistent neigh lists: Fix, Compute, Pair
if (other->unprocessed) same = 0;
if (requestor != other->requestor) same = 0;
if (requestor_instance != other->requestor_instance) same = 0;
if (id != other->id) same = 0;
if (pair != other->pair) same = 0;