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

This commit is contained in:
sjplimp
2016-03-22 00:17:14 +00:00
parent 009f3564e0
commit 86fc7d455c
5 changed files with 17 additions and 12 deletions

View File

@ -1818,7 +1818,13 @@ void Neighbor::setup_bins()
if (mbins > maxhead) {
maxhead = mbins;
memory->destroy(binhead);
// USER-INTEL package requires one additional element
#if defined(LMP_USER_INTEL)
memory->create(binhead,maxhead + 1,"neigh:binhead");
#else
memory->create(binhead,maxhead,"neigh:binhead");
#endif
}
// create stencil of bins to search over in neighbor list construction