git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@13931 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -204,13 +204,13 @@ void ReaderXYZ::read_atoms(int n, int nfield, double **fields)
|
||||
/* ----------------------------------------------------------------------
|
||||
read N lines from dump file
|
||||
only last one is saved in line
|
||||
return NULL if end-of-file error, else non-NULL
|
||||
only called by proc 0
|
||||
------------------------------------------------------------------------- */
|
||||
|
||||
void ReaderXYZ::read_lines(int n)
|
||||
{
|
||||
char *eof;
|
||||
char *eof = NULL;
|
||||
if (n <= 0) return;
|
||||
for (int i = 0; i < n; i++) eof = fgets(line,MAXLINE,fp);
|
||||
if (eof == NULL) error->all(FLERR,"Unexpected end of dump file");
|
||||
if (eof == NULL) error->one(FLERR,"Unexpected end of dump file");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user