git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@6370 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp
2011-06-13 17:29:06 +00:00
parent 19a9c8b61a
commit 1fedcb6e5e
2 changed files with 11 additions and 1 deletions

View File

@ -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) |