Add input file options that accept missing files
authorTeemu Murtola <teemu.murtola@gmail.com>
Fri, 16 Jan 2015 20:26:44 +0000 (22:26 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Thu, 29 Jan 2015 00:40:50 +0000 (01:40 +0100)
commit63e5fa07ca77bd8b67d57311deec1c89c4a0077c
tree0811f772e83627715b33133c5f7405709e519990
parent9c2250d8bd991e06ee7a7f6467340f7120e307db
Add input file options that accept missing files

Add a flag to t_filenm and to FileNameOption that makes input options
not fail when the user-provided file does not exist.  Add tests for the
functionality.  Use the flag for -cpi option to support using the same
command line for initial and continuation runs.

Fixes #1672.

Change-Id: I62945266ff15449fb153d5153cd550b3a257df69
src/gromacs/commandline/pargs.cpp
src/gromacs/commandline/tests/pargs.cpp
src/gromacs/fileio/filenm.h
src/gromacs/options/filenameoption.cpp
src/gromacs/options/filenameoption.h
src/gromacs/options/filenameoptionmanager.cpp
src/gromacs/options/filenameoptionstorage.h
src/gromacs/options/tests/filenameoptionmanager.cpp
src/programs/mdrun/mdrun.cpp