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

This commit is contained in:
sjplimp
2014-09-05 15:06:29 +00:00
parent 8dce3d380c
commit 31509b7528
11 changed files with 26 additions and 49 deletions

View File

@ -1972,13 +1972,7 @@ void AtomVecFullKokkos::data_atom(double *coord, imageint imagetmp,
if (nlocal == nmax) grow(0);
h_tag(nlocal) = atoi(values[0]);
if (h_tag(nlocal) <= 0)
error->one(FLERR,"Invalid atom ID in Atoms section of data file");
h_molecule(nlocal) = atoi(values[1]);
if (h_molecule(nlocal) <= 0)
error->one(FLERR,"Invalid molecule ID in Atoms section of data file");
h_type(nlocal) = atoi(values[2]);
if (h_type(nlocal) <= 0 || h_type(nlocal) > atom->ntypes)
error->one(FLERR,"Invalid atom type in Atoms section of data file");