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

This commit is contained in:
sjplimp 2016-05-31 16:41:25 +00:00
parent 4c107f450c
commit 3c11e66b5a
2 changed files with 2 additions and 2 deletions

View File

@ -239,7 +239,7 @@ void PPPMGPU::compute(int eflag, int vflag)
// extend size of per-atom arrays if necessary
if (atom->nlocal > nmax) {
if (atom->nmax > nmax) {
memory->destroy(part2grid);
nmax = atom->nmax;
memory->create(part2grid,nmax,3,"pppm:part2grid");

View File

@ -76,7 +76,7 @@ void ImproperHybrid::compute(int eflag, int vflag)
for (m = 0; m < nstyles; m++) nimproperlist[m] = 0;
for (i = 0; i < nimproperlist_orig; i++) {
m = map[improperlist_orig[i][4]];
nimproperlist[m]++;
if (m >= 0) nimproperlist[m]++;
}
for (m = 0; m < nstyles; m++) {
if (nimproperlist[m] > maximproper[m]) {