Fixed problem with read_dump xyz
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@14045 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -56,6 +56,8 @@ int ReaderXYZ::read_time(bigint &ntimestep)
|
||||
{
|
||||
char *eof = fgets(line,MAXLINE,fp);
|
||||
if (eof == NULL) return 1;
|
||||
int n = strlen(line);
|
||||
if (n > 0) line[n-1] = '\0'; // strip newline
|
||||
|
||||
// first line has to have the number of atoms
|
||||
|
||||
|
||||
Reference in New Issue
Block a user