git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@7003 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -89,7 +89,7 @@ void AtomVecSphere::grow(int n)
|
||||
else nmax = n;
|
||||
atom->nmax = nmax;
|
||||
if (nmax < 0 || nmax > MAXSMALLINT)
|
||||
error->one("Per-processor system is too big");
|
||||
error->one(FLERR,"Per-processor system is too big");
|
||||
|
||||
tag = memory->grow(atom->tag,nmax,"atom:tag");
|
||||
type = memory->grow(atom->type,nmax,"atom:type");
|
||||
@ -949,19 +949,19 @@ void AtomVecSphere::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");
|
||||
|
||||
radius[nlocal] = 0.5 * atof(values[2]);
|
||||
if (radius[nlocal] < 0.0)
|
||||
error->one("Invalid radius in Atoms section of data file");
|
||||
error->one(FLERR,"Invalid radius in Atoms section of data file");
|
||||
|
||||
double density = atof(values[3]);
|
||||
if (density <= 0.0)
|
||||
error->one("Invalid density in Atoms section of data file");
|
||||
error->one(FLERR,"Invalid density in Atoms section of data file");
|
||||
|
||||
if (radius[nlocal] == 0.0) rmass[nlocal] = density;
|
||||
else
|
||||
@ -994,11 +994,11 @@ int AtomVecSphere::data_atom_hybrid(int nlocal, char **values)
|
||||
{
|
||||
radius[nlocal] = 0.5 * atof(values[0]);
|
||||
if (radius[nlocal] < 0.0)
|
||||
error->one("Invalid radius in Atoms section of data file");
|
||||
error->one(FLERR,"Invalid radius in Atoms section of data file");
|
||||
|
||||
double density = atof(values[1]);
|
||||
if (density <= 0.0)
|
||||
error->one("Invalid density in Atoms section of data file");
|
||||
error->one(FLERR,"Invalid density in Atoms section of data file");
|
||||
|
||||
if (radius[nlocal] == 0.0) rmass[nlocal] = density;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user