Prevent fragile use cases of checkpoint appending
authorErik Lindahl <erik@kth.se>
Tue, 24 May 2016 23:04:50 +0000 (01:04 +0200)
committerErik Lindahl <erik@kth.se>
Sat, 9 Jul 2016 15:40:51 +0000 (17:40 +0200)
commit07d120957728dd271752128113b58b45f6b8e194
treee1cece5f3384a0647e2269c10a10772f08d93ec6
parent14ed2ccde799cd12cfd3c070419dc477f396cdbf
Prevent fragile use cases of checkpoint appending

There are way too many ways we allow runs to be continued
and extended. We still allow the checkpoint file to be
missing (so -cpi can be used for all command lines), but
we warn if it is not found. To avoid mistakes with file
appending when restarting from checkpoints, we now require
that all previous output files must be present
(unless -noappend is used), and that the file names must
match the ones used in the previous run.

Fixes #1777.

Change-Id: Id9e89773a4a9214be6dbb76676c526e98e12bd37
src/gromacs/mdrunutility/handlerestart.cpp
src/gromacs/mdrunutility/handlerestart.h
src/programs/mdrun/mdrun.cpp