git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@14427 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -1335,11 +1335,11 @@ void Atom::data_bodies(int n, char *buf, AtomVecBody *avec_body,
|
|||||||
|
|
||||||
if (tagdata <= 0 || tagdata > map_tag_max)
|
if (tagdata <= 0 || tagdata > map_tag_max)
|
||||||
error->one(FLERR,"Invalid atom ID in Bodies section of data file");
|
error->one(FLERR,"Invalid atom ID in Bodies section of data file");
|
||||||
|
|
||||||
|
ninteger = force->inumeric(FLERR,strtok(NULL," \t\n\r\f"));
|
||||||
|
ndouble = force->inumeric(FLERR,strtok(NULL," \t\n\r\f"));
|
||||||
|
|
||||||
if ((m = map(tagdata)) >= 0) {
|
if ((m = map(tagdata)) >= 0) {
|
||||||
ninteger = force->inumeric(FLERR,strtok(NULL," \t\n\r\f"));
|
|
||||||
ndouble = force->inumeric(FLERR,strtok(NULL," \t\n\r\f"));
|
|
||||||
|
|
||||||
if (ninteger > maxint) {
|
if (ninteger > maxint) {
|
||||||
delete [] ivalues;
|
delete [] ivalues;
|
||||||
maxint = ninteger;
|
maxint = ninteger;
|
||||||
@ -1359,7 +1359,7 @@ void Atom::data_bodies(int n, char *buf, AtomVecBody *avec_body,
|
|||||||
avec_body->data_body(m,ninteger,ndouble,ivalues,dvalues);
|
avec_body->data_body(m,ninteger,ndouble,ivalues,dvalues);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
nvalues = 2 + ninteger + ndouble; // number of values to skip
|
nvalues = ninteger + ndouble; // number of values to skip
|
||||||
for (j = 0; j < nvalues; j++)
|
for (j = 0; j < nvalues; j++)
|
||||||
strtok(NULL," \t\n\r\f");
|
strtok(NULL," \t\n\r\f");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user