From 2e1c8137c4fe943ac6e31cc79c45f1b1a1f60162 Mon Sep 17 00:00:00 2001 From: sjplimp Date: Wed, 8 Jul 2015 22:23:08 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@13558 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/atom.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/atom.cpp b/src/atom.cpp index 42304c2b77..d206ea42f7 100644 --- a/src/atom.cpp +++ b/src/atom.cpp @@ -566,9 +566,6 @@ void Atom::modify_params(int narg, char **arg) void Atom::tag_check() { - int nlocal = atom->nlocal; - tagint *tag = atom->tag; - tagint min = MAXTAGINT; tagint max = 0; @@ -584,6 +581,7 @@ void Atom::tag_check() if (minall < 0) error->all(FLERR,"Atom ID is negative"); if (maxall >= MAXTAGINT) error->all(FLERR,"Atom ID is too big"); if (maxall > 0 && minall == 0) error->all(FLERR,"Atom ID is zero"); + // this last message is wrong if (maxall == 0 && tag_enable && natoms) error->all(FLERR,"Not all atom IDs are 0"); }