enable more correct natoms computation when atoms are lost

This commit is contained in:
Steven J. Plimpton
2018-08-07 15:05:07 -06:00
parent e88311235f
commit d27215b7e1
4 changed files with 15 additions and 2 deletions

View File

@ -84,7 +84,7 @@ idregion(NULL), idvar(NULL), idprop(NULL)
idprop = new char[n];
strcpy(idprop,arg[iarg+1]);
iarg += 2;
} else if (strcmp(arg[iarg],"every") == 0) {
} else if (strcmp(arg[iarg],"every") == 0) {
if (iarg+2 > narg) error->all(FLERR,"Illegal group command");
nevery = force->inumeric(FLERR,arg[iarg+1]);
if (nevery <= 0) error->all(FLERR,"Illegal group command");