git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@13558 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp 2015-07-08 22:23:08 +00:00
parent eb6c99bf19
commit 2e1c8137c4
1 changed files with 1 additions and 3 deletions

View File

@ -566,9 +566,6 @@ void Atom::modify_params(int narg, char **arg)
void Atom::tag_check() void Atom::tag_check()
{ {
int nlocal = atom->nlocal;
tagint *tag = atom->tag;
tagint min = MAXTAGINT; tagint min = MAXTAGINT;
tagint max = 0; tagint max = 0;
@ -584,6 +581,7 @@ void Atom::tag_check()
if (minall < 0) error->all(FLERR,"Atom ID is negative"); if (minall < 0) error->all(FLERR,"Atom ID is negative");
if (maxall >= MAXTAGINT) error->all(FLERR,"Atom ID is too big"); if (maxall >= MAXTAGINT) error->all(FLERR,"Atom ID is too big");
if (maxall > 0 && minall == 0) error->all(FLERR,"Atom ID is zero"); if (maxall > 0 && minall == 0) error->all(FLERR,"Atom ID is zero");
// this last message is wrong
if (maxall == 0 && tag_enable && natoms) if (maxall == 0 && tag_enable && natoms)
error->all(FLERR,"Not all atom IDs are 0"); error->all(FLERR,"Not all atom IDs are 0");
} }