Merge branch 'master' into improve-include-consistency

This commit is contained in:
Axel Kohlmeyer
2019-07-10 14:18:42 -04:00
28 changed files with 45 additions and 42 deletions

View File

@ -1278,7 +1278,7 @@ void AtomVecBody::data_atom(double *coord, imageint imagetmp, char **values)
int nlocal = atom->nlocal;
if (nlocal == nmax) grow(0);
tag[nlocal] = ATOTAGINT(values[0]);
tag[nlocal] = utils::tnumeric(FLERR,values[0],true,lmp);
type[nlocal] = utils::inumeric(FLERR,values[1],true,lmp);
if (type[nlocal] <= 0 || type[nlocal] > atom->ntypes)
error->one(FLERR,"Invalid atom type in Atoms section of data file");