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

This commit is contained in:
sjplimp
2009-04-30 16:53:21 +00:00
parent 55ecf78cdc
commit d11c29e95b
7 changed files with 26 additions and 26 deletions

View File

@ -105,7 +105,7 @@ void Neighbor::half_bin_no_newton(NeighList *list)
firstneigh[i] = neighptr;
numneigh[i] = n;
npnt += n;
if (npnt >= pgsize)
if (n > oneatom || npnt >= pgsize)
error->one("Neighbor list overflow, boost neigh_modify one or page");
}
@ -219,7 +219,7 @@ void Neighbor::half_bin_newton(NeighList *list)
firstneigh[i] = neighptr;
numneigh[i] = n;
npnt += n;
if (npnt >= pgsize)
if (n > oneatom || npnt >= pgsize)
error->one("Neighbor list overflow, boost neigh_modify one or page");
}
@ -313,7 +313,7 @@ void Neighbor::half_bin_newton_tri(NeighList *list)
firstneigh[i] = neighptr;
numneigh[i] = n;
npnt += n;
if (npnt >= pgsize)
if (n > oneatom || npnt >= pgsize)
error->one("Neighbor list overflow, boost neigh_modify one or page");
}