git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@11937 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user