Merge branch 'master' into prepare-clang-format

This commit is contained in:
Axel Kohlmeyer
2021-05-14 20:38:54 -04:00
2 changed files with 19 additions and 3 deletions

View File

@ -2238,7 +2238,7 @@ void Neighbor::build(int topoflag)
for (i = 0; i < npair_perpetual; i++) {
m = plist[i];
if (!lists[i]->copy || lists[i]->kk2cpu)
if (!lists[m]->copy || lists[m]->kk2cpu)
lists[m]->grow(nlocal,nall);
neigh_pair[m]->build_setup();
neigh_pair[m]->build(lists[m]);