forked from lijiext/lammps
Merge branch 'read_dump_item_time' of https://github.com/mkanski/lammps into collected-small-fixes
This commit is contained in:
commit
076c28538c
|
@ -56,11 +56,14 @@ int ReaderNative::read_time(bigint &ntimestep)
|
|||
char *eof = fgets(line,MAXLINE,fp);
|
||||
if (eof == NULL) return 1;
|
||||
|
||||
// skip over unit information, if present.
|
||||
// skip over unit and time information, if present.
|
||||
|
||||
if (strstr(line,"ITEM: UNITS") == line)
|
||||
read_lines(2);
|
||||
|
||||
if (strstr(line,"ITEM: TIME") == line)
|
||||
read_lines(2);
|
||||
|
||||
if (strstr(line,"ITEM: TIMESTEP") != line)
|
||||
error->one(FLERR,"Dump file is incorrectly formatted");
|
||||
|
||||
|
|
Loading…
Reference in New Issue