git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@6370 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -805,8 +805,11 @@ void Atom::data_atoms(int n, char *buf)
|
||||
next = strchr(buf,'\n');
|
||||
|
||||
values[0] = strtok(buf," \t\n\r\f");
|
||||
for (m = 1; m < nwords; m++)
|
||||
if (values[0] == NULL) error->all("Incorrect atom format in data file");
|
||||
for (m = 1; m < nwords; m++) {
|
||||
values[m] = strtok(NULL," \t\n\r\f");
|
||||
if (values[m] == NULL) error->all("Incorrect atom format in data file");
|
||||
}
|
||||
|
||||
if (imageflag)
|
||||
imagedata = ((atoi(values[iptr+2]) + 512 & 1023) << 20) |
|
||||
|
||||
Reference in New Issue
Block a user