correct cut-n-paste error
This commit is contained in:
@ -1286,7 +1286,7 @@ void AtomVecBody::data_atom(double *coord, imageint imagetmp, char **values)
|
|||||||
body[nlocal] = atoi(values[2]);
|
body[nlocal] = atoi(values[2]);
|
||||||
if (body[nlocal] == 0) body[nlocal] = -1;
|
if (body[nlocal] == 0) body[nlocal] = -1;
|
||||||
else if (body[nlocal] == 1) body[nlocal] = 0;
|
else if (body[nlocal] == 1) body[nlocal] = 0;
|
||||||
else error->one(FLERR,"Invalid atom type in Atoms section of data file");
|
else error->one(FLERR,"Invalid bodyflag in Atoms section of data file");
|
||||||
|
|
||||||
rmass[nlocal] = atof(values[3]);
|
rmass[nlocal] = atof(values[3]);
|
||||||
if (rmass[nlocal] <= 0.0)
|
if (rmass[nlocal] <= 0.0)
|
||||||
|
|||||||
@ -1148,7 +1148,7 @@ void AtomVecEllipsoid::data_atom(double *coord, imageint imagetmp,
|
|||||||
ellipsoid[nlocal] = atoi(values[2]);
|
ellipsoid[nlocal] = atoi(values[2]);
|
||||||
if (ellipsoid[nlocal] == 0) ellipsoid[nlocal] = -1;
|
if (ellipsoid[nlocal] == 0) ellipsoid[nlocal] = -1;
|
||||||
else if (ellipsoid[nlocal] == 1) ellipsoid[nlocal] = 0;
|
else if (ellipsoid[nlocal] == 1) ellipsoid[nlocal] = 0;
|
||||||
else error->one(FLERR,"Invalid atom type in Atoms section of data file");
|
else error->one(FLERR,"Invalid ellipsoidflag in Atoms section of data file");
|
||||||
|
|
||||||
rmass[nlocal] = atof(values[3]);
|
rmass[nlocal] = atof(values[3]);
|
||||||
if (rmass[nlocal] <= 0.0)
|
if (rmass[nlocal] <= 0.0)
|
||||||
|
|||||||
@ -1044,7 +1044,7 @@ void AtomVecLine::data_atom(double *coord, imageint imagetmp, char **values)
|
|||||||
line[nlocal] = atoi(values[3]);
|
line[nlocal] = atoi(values[3]);
|
||||||
if (line[nlocal] == 0) line[nlocal] = -1;
|
if (line[nlocal] == 0) line[nlocal] = -1;
|
||||||
else if (line[nlocal] == 1) line[nlocal] = 0;
|
else if (line[nlocal] == 1) line[nlocal] = 0;
|
||||||
else error->one(FLERR,"Invalid atom type in Atoms section of data file");
|
else error->one(FLERR,"Invalid lineflag in Atoms section of data file");
|
||||||
|
|
||||||
rmass[nlocal] = atof(values[4]);
|
rmass[nlocal] = atof(values[4]);
|
||||||
if (rmass[nlocal] <= 0.0)
|
if (rmass[nlocal] <= 0.0)
|
||||||
|
|||||||
@ -1443,7 +1443,7 @@ void AtomVecTri::data_atom(double *coord, imageint imagetmp, char **values)
|
|||||||
tri[nlocal] = atoi(values[3]);
|
tri[nlocal] = atoi(values[3]);
|
||||||
if (tri[nlocal] == 0) tri[nlocal] = -1;
|
if (tri[nlocal] == 0) tri[nlocal] = -1;
|
||||||
else if (tri[nlocal] == 1) tri[nlocal] = 0;
|
else if (tri[nlocal] == 1) tri[nlocal] = 0;
|
||||||
else error->one(FLERR,"Invalid atom type in Atoms section of data file");
|
else error->one(FLERR,"Invalid triflag in Atoms section of data file");
|
||||||
|
|
||||||
rmass[nlocal] = atof(values[4]);
|
rmass[nlocal] = atof(values[4]);
|
||||||
if (rmass[nlocal] <= 0.0)
|
if (rmass[nlocal] <= 0.0)
|
||||||
|
|||||||
Reference in New Issue
Block a user