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

This commit is contained in:
sjplimp
2013-11-22 22:15:48 +00:00
parent 13ebf5b7db
commit f447886276
3 changed files with 34 additions and 6 deletions

View File

@ -233,6 +233,7 @@ void Neighbor::init()
// needs to be non-zero for migration distance check
// even if pair = NULL and no neighbor lists are used
// cutneigh = force cutoff + skin if cutforce > 0, else cutneigh = 0
// cutneighghost = pair cutghost if it requests it, else same as cutneigh
triggersq = 0.25*skin*skin;
boxcheck = 0;
@ -270,7 +271,7 @@ void Neighbor::init()
if (force->pair && force->pair->ghostneigh) {
cut = force->pair->cutghost[i][j] + skin;
cutneighghostsq[i][j] = cut*cut;
}
} else cutneighghostsq[i][j] = cut*cut;
}
}
cutneighmaxsq = cutneighmax * cutneighmax;
@ -435,6 +436,10 @@ void Neighbor::init()
// no need to re-create if:
// neigh style, triclinic, pgsize, oneatom have not changed
// current requests = old requests
// first archive request params for current requests
// before Neighbor possibly changes them below
for (i = 0; i < nrequest; i++) requests[i]->archive();
int same = 1;
if (style != old_style) same = 0;