diff --git a/src/fix_move.cpp b/src/fix_move.cpp index 5108793cf514db1a988c87dde94f5ccc88329c29..7d18f6145cfd36fdea9de688330b67e58b15523e 100644 --- a/src/fix_move.cpp +++ b/src/fix_move.cpp @@ -885,7 +885,7 @@ void FixMove::set_arrays(int i) // backup particle to time_origin if (mstyle == VARIABLE) - error->all("Cannot add atoms to fix move variable after"); + error->all("Cannot add atoms to fix move variable"); domain->unmap(x[i],image[i],xoriginal[i]); double delta = (update->ntimestep - time_origin) * update->dt; diff --git a/src/neigh_list.cpp b/src/neigh_list.cpp index 19ee92041339f590d7068300aa044873d43efeaa..b8d4e5b3b98eceb7fa35a3b46ce23d59c8c28704 100644 --- a/src/neigh_list.cpp +++ b/src/neigh_list.cpp @@ -121,7 +121,8 @@ void NeighList::grow(int nmax) memory->destroy(ilist); memory->destroy(numneigh); - memory->destroy(firstneigh); + memory->sfree(firstneigh); + memory->create(ilist,maxatoms,"neighlist:ilist"); memory->create(numneigh,maxatoms,"neighlist:numneigh"); firstneigh = (int **) memory->smalloc(maxatoms*sizeof(int *),