git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@7003 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -757,11 +757,11 @@ void AtomVecElectron::data_atom(double *coord, int imagetmp, char **values)
|
||||
|
||||
tag[nlocal] = atoi(values[0]);
|
||||
if (tag[nlocal] <= 0)
|
||||
error->one("Invalid atom ID in Atoms section of data file");
|
||||
error->one(FLERR,"Invalid atom ID in Atoms section of data file");
|
||||
|
||||
type[nlocal] = atoi(values[1]);
|
||||
if (type[nlocal] <= 0 || type[nlocal] > atom->ntypes)
|
||||
error->one("Invalid atom type in Atoms section of data file");
|
||||
error->one(FLERR,"Invalid atom type in Atoms section of data file");
|
||||
|
||||
q[nlocal] = atof(values[2]);
|
||||
spin[nlocal] = atoi(values[3]);
|
||||
@ -793,7 +793,7 @@ int AtomVecElectron::data_atom_hybrid(int nlocal, char **values)
|
||||
spin[nlocal] = atoi(values[1]);
|
||||
eradius[nlocal] = atof(values[2]);
|
||||
if (eradius[nlocal] < 0.0)
|
||||
error->one("Invalid eradius in Atoms section of data file");
|
||||
error->one(FLERR,"Invalid eradius in Atoms section of data file");
|
||||
|
||||
v[nlocal][0] = 0.0;
|
||||
v[nlocal][1] = 0.0;
|
||||
|
||||
Reference in New Issue
Block a user