From 1202c2a2bed681421be862f0cf72564cf78fa842 Mon Sep 17 00:00:00 2001 From: sjplimp <sjplimp@f3b2605a-c512-4ea7-a41b-209d697bcdaa> Date: Sat, 26 Mar 2011 19:26:23 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@5845 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/fix_move.cpp | 2 +- src/neigh_list.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/fix_move.cpp b/src/fix_move.cpp index 5108793cf5..7d18f6145c 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 19ee920413..b8d4e5b3b9 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 *), -- GitLab