From 7c62bce7d9c9fe79fc2b0f06b695e450813046a1 Mon Sep 17 00:00:00 2001 From: mkanski Date: Thu, 13 Feb 2020 18:13:22 +0100 Subject: [PATCH] Enable reading dump file with ITEM:TIME --- src/reader_native.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/reader_native.cpp b/src/reader_native.cpp index da2c97bbe5..41596de8e7 100644 --- a/src/reader_native.cpp +++ b/src/reader_native.cpp @@ -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");