git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@12409 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -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");
|
||||
|
||||
Reference in New Issue
Block a user