update to current master
This commit is contained in:
@ -148,6 +148,19 @@ void AtomVec::init()
|
||||
error->all(FLERR,"KOKKOS package requires a kokkos enabled atom_style");
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------
|
||||
roundup N so it is a multiple of DELTA
|
||||
error if N exceeds 32-bit int, since will be used as arg to grow()
|
||||
------------------------------------------------------------------------- */
|
||||
|
||||
bigint AtomVec::roundup(bigint n)
|
||||
{
|
||||
if (n % DELTA) n = n/DELTA * DELTA + DELTA;
|
||||
if (n > MAXSMALLINT)
|
||||
error->one(FLERR,"Too many atoms created on one or more procs");
|
||||
return n;
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------
|
||||
grow nmax so it is a multiple of DELTA
|
||||
------------------------------------------------------------------------- */
|
||||
|
||||
Reference in New Issue
Block a user