fix spring doc page update

This commit is contained in:
Steve Plimpton
2017-01-17 09:02:56 -07:00
parent c31f1e9f22
commit 5cd856c97f
16 changed files with 233 additions and 183 deletions

View File

@ -144,7 +144,7 @@ void AtomVecHybrid::grow(int n)
if (n == 0) grow_nmax();
else nmax = n;
atom->nmax = nmax;
if (nmax < 0)
if (nmax < 0 || nmax > MAXSMALLINT)
error->one(FLERR,"Per-processor system is too big");
// sub-styles perform all reallocation