Enable reading dump file with ITEM:TIME

This commit is contained in:
mkanski 2020-02-13 18:13:22 +01:00
parent 5d467bcc74
commit 7c62bce7d9
1 changed files with 4 additions and 1 deletions

View File

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