Append _pullx_ and _pullf to pull files when -deffnm used.
authorPeter Kasson <kasson@gmail.com>
Mon, 22 Jun 2015 21:32:26 +0000 (17:32 -0400)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Sun, 28 Jun 2015 12:22:40 +0000 (14:22 +0200)
commitaea28fdc666637aa0a4636b58e37cef731b468be
tree57c71ab979cb2a8104761198f711de4cf8e31ef0
parent82c531607fcc20688740efc0c46c81c09aa99678
Append _pullx_ and _pullf to pull files when -deffnm used.

Changes -deffnm behavior for pulling so that the pullx and pullf
files don't collide. Previously, this resulted in one being
backed up and checkpoint restarts failing when -deffnm was used.
(Technically this applies to anything where -px and -pf are identical
 and not explicitly set, but that only happens with -deffnm.)

Additionally return fatal error if -px or -pf set and output files
collide.

Fix is now localized to the pull code.

Fixes #942 except for log file collision with pull-rotation.

Change-Id: I27b8b4ced0f307905e2c2ea4fb260376dd25dc32
src/gromacs/pulling/pull.cpp