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

This commit is contained in:
sjplimp 2011-02-22 17:52:17 +00:00
parent 2f2d98a3e6
commit 6d6d45f25e
1 changed files with 10 additions and 0 deletions

View File

@ -1173,6 +1173,16 @@ void Neighbor::build_one(int i)
bins = (int *) memory->smalloc(maxbin*sizeof(int),"bins");
}
// this condition can cause LAMMPS to crash
// no easy workaround b/c all neighbor lists really need to be rebuilt
// solution is for input script to check more often for rebuild, so warn
int flag = 0;
if (dist_check) flag = check_distance();
if (flag && me == 0)
error->warning("Building an occasional neighobr list when "
"atoms may have moved too far");
(this->*pair_build[i])(lists[i]);
}