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

This commit is contained in:
sjplimp
2015-08-28 23:41:05 +00:00
parent 4e247c3b8c
commit 6b854b397c
4 changed files with 58 additions and 4 deletions

View File

@ -298,6 +298,7 @@ void ReadData::command(int narg, char **arg)
nbonds = nangles = ndihedrals = nimpropers = 0;
nbondtypes = nangletypes = ndihedraltypes = nimpropertypes = 0;
triclinic = 0;
keyword[0] = '\0';
int nlocal_previous = atom->nlocal;
int firstpass = 1;
@ -1763,7 +1764,10 @@ void ReadData::parse_keyword(int first)
if (fgets(line,MAXLINE,fp) == NULL) eof = 1;
} else done = 1;
}
if (fgets(buffer,MAXLINE,fp) == NULL) eof = 1;
if (fgets(buffer,MAXLINE,fp) == NULL) {
eof = 1;
buffer[0] = '\0';
}
}
// if eof, set keyword empty and return