Check log and other files differently during appending restart
commit5877facda22d99877f647894b435d1908187b221
authorMark Abraham <mark.j.abraham@gmail.com>
Tue, 25 Sep 2018 19:34:17 +0000 (25 21:34 +0200)
committerMark Abraham <mark.j.abraham@gmail.com>
Fri, 5 Oct 2018 16:05:18 +0000 (5 18:05 +0200)
tree7980c586ee3191269fce5410d6dacd6afe779b32
parentd8f52d842d33370a16f390b266e273f6677fe0c4
Check log and other files differently during appending restart

We need to do different operations on the log file than the other
files, so it makes sense to separate those aspects of its handling,
while calling a common function for those that are common. That will
also prepare to clean up the opening of the log file in Mdrunner, so
we can do it in only one place.

Checked all the offsets were valid before doing any file operations.

Used a bit less preprocessing, too.

Refs #2651

Change-Id: I23cfba550b57d169c021d72618341ff017a3e7de
src/gromacs/fileio/checkpoint.cpp