This commit is contained in:
Axel Kohlmeyer
2022-12-25 00:42:20 -05:00
parent 4ee8dea4b3
commit 55af6fc72b

View File

@ -132,7 +132,7 @@ void PairMorse::compute(int eflag, int vflag)
void PairMorse::allocate() void PairMorse::allocate()
{ {
allocated = 1; allocated = 1;
int np1 = atom->ntypes; int np1 = atom->ntypes + 1;
memory->create(setflag, np1, np1, "pair:setflag"); memory->create(setflag, np1, np1, "pair:setflag");
for (int i = 1; i < np1; i++) for (int i = 1; i < np1; i++)