git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@11937 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp
2014-05-07 16:15:31 +00:00
parent 4ab16d5388
commit 4c9bba90f1
34 changed files with 146 additions and 215 deletions

View File

@ -28,8 +28,7 @@
using namespace LAMMPS_NS;
#define DELTA 10000
#define DELTA_BONUS 10000
#define DELTA_BONUS 8192
/* ---------------------------------------------------------------------- */
@ -111,13 +110,13 @@ void AtomVecBody::process_args(int narg, char **arg)
/* ----------------------------------------------------------------------
grow atom arrays
n = 0 grows arrays by DELTA
n = 0 grows arrays by a chunk
n > 0 allocates arrays to size n
------------------------------------------------------------------------- */
void AtomVecBody::grow(int n)
{
if (n == 0) nmax += DELTA;
if (n == 0) grow_nmax();
else nmax = n;
atom->nmax = nmax;
if (nmax < 0 || nmax > MAXSMALLINT)