forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@5401 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
f74bb8a6f2
commit
10d3073e6e
|
@ -125,12 +125,16 @@ void Replicate::command(int narg, char **arg)
|
|||
atom->create_avec(old->atom_style,nstyles,keywords);
|
||||
|
||||
// check that new problem size will not be too large
|
||||
// if N > 2^31, turn off tags
|
||||
// if N > 2^31, turn off tags for existing and new atoms
|
||||
// if molecular, N/Nbonds/etc cannot be > 2^31 else tags/counts invalid
|
||||
|
||||
double rep = nrep;
|
||||
if (rep*old->natoms > MAXATOMS) atom->tag_enable = 0;
|
||||
|
||||
if (atom->tag_enable == 0)
|
||||
for (int i = 0; i < atom->nlocal; i++)
|
||||
atom->tag[i] = 0;
|
||||
|
||||
if (atom->molecular) {
|
||||
if (rep*old->natoms > MAXATOMS || rep*old->nbonds > MAXATOMS ||
|
||||
rep*old->nangles > MAXATOMS || rep*old->ndihedrals > MAXATOMS ||
|
||||
|
|
Loading…
Reference in New Issue