forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@15086 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
4c107f450c
commit
3c11e66b5a
|
@ -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");
|
||||
|
|
|
@ -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]) {
|
||||
|
|
Loading…
Reference in New Issue