diff --git a/src/neigh_list.cpp b/src/neigh_list.cpp index 1a65dd2981..9be7c33a81 100644 --- a/src/neigh_list.cpp +++ b/src/neigh_list.cpp @@ -57,7 +57,7 @@ NeighList::NeighList(LAMMPS *lmp) : listcopy = NULL; listskip = NULL; - maxstencil = 0; + maxstencil = ghostflag = 0; stencil = NULL; stencilxyz = NULL; @@ -145,7 +145,6 @@ void NeighList::grow(int nmax) memory->create(numneigh,maxatoms,"neighlist:numneigh"); firstneigh = (int **) memory->smalloc(maxatoms*sizeof(int *), "neighlist:firstneigh"); - if (dnum) firstdouble = (double **) memory->smalloc(maxatoms*sizeof(double *), "neighlist:firstdouble");