git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@13983 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -81,7 +81,7 @@ void AtomVecTri::grow(int n)
|
||||
if (n == 0) grow_nmax();
|
||||
else nmax = n;
|
||||
atom->nmax = nmax;
|
||||
if (nmax < 0 || nmax > MAXSMALLINT)
|
||||
if (nmax < 0)
|
||||
error->one(FLERR,"Per-processor system is too big");
|
||||
|
||||
tag = memory->grow(atom->tag,nmax,"atom:tag");
|
||||
@ -124,7 +124,7 @@ void AtomVecTri::grow_reset()
|
||||
void AtomVecTri::grow_bonus()
|
||||
{
|
||||
nmax_bonus = grow_nmax_bonus(nmax_bonus);
|
||||
if (nmax_bonus < 0 || nmax_bonus > MAXSMALLINT)
|
||||
if (nmax_bonus < 0)
|
||||
error->one(FLERR,"Per-processor system is too big");
|
||||
|
||||
bonus = (Bonus *) memory->srealloc(bonus,nmax_bonus*sizeof(Bonus),
|
||||
|
||||
Reference in New Issue
Block a user