diff --git a/src/MANYBODY/pair_comb.cpp b/src/MANYBODY/pair_comb.cpp index 90447cd370..8762469d86 100644 --- a/src/MANYBODY/pair_comb.cpp +++ b/src/MANYBODY/pair_comb.cpp @@ -142,6 +142,7 @@ void PairComb::compute(int eflag, int vflag) int *tag = atom->tag; int *type = atom->type; int nlocal = atom->nlocal; + int nall = nlocal + atom->nghost; int newton_pair = force->newton_pair; int ntype = atom->ntypes; @@ -1635,6 +1636,7 @@ double PairComb::yasu_char(double *qf_fix, int &igroup) int *tag = atom->tag; int *type = atom->type; int nlocal = atom->nlocal; + int nall = nlocal + atom->nghost; int inum = list->inum; ilist = list->ilist; diff --git a/src/MANYBODY/pair_eim.cpp b/src/MANYBODY/pair_eim.cpp index 43e51aaaf5..e66ee6d27f 100644 --- a/src/MANYBODY/pair_eim.cpp +++ b/src/MANYBODY/pair_eim.cpp @@ -130,6 +130,7 @@ void PairEIM::compute(int eflag, int vflag) double **f = atom->f; int *type = atom->type; int nlocal = atom->nlocal; + int nall = nlocal + atom->nghost; int newton_pair = force->newton_pair; inum = list->inum;