Fix grompp not warning when .mdp values have wrong types
commitd0071abfbebdc0a14c184707acf09737f4c4c832
authorMark Abraham <mark.j.abraham@gmail.com>
Wed, 27 Jan 2016 14:14:19 +0000 (27 15:14 +0100)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Wed, 3 Feb 2016 12:41:59 +0000 (3 13:41 +0100)
tree06413cbfaeae7c82c3bea5e8e100119000f9ebec
parent2ee7caefbfb569aa7bf4b7068112d67b6c99dfc2
Fix grompp not warning when .mdp values have wrong types

With old code, e.g. init_lambda_state = 0.35 was silently
interpreted as 0.

Added some comments and TODOs.

Added unit tests for some simple parts of the the functionality that
needed to be fixed. Extended the interface of warninp_t to permit
sound testing.

Fixes #1893

Change-Id: I425798daa8ed3a391cde49ba4a2d3d352d682f8f
src/gromacs/gmxlib/CMakeLists.txt
src/gromacs/gmxlib/readinp.c
src/gromacs/gmxlib/tests/CMakeLists.txt [copied from src/gromacs/gmxlib/CMakeLists.txt with 72% similarity]
src/gromacs/gmxlib/tests/readinp.cpp [new file with mode: 0644]
src/gromacs/gmxlib/warninp.c
src/gromacs/legacyheaders/warninp.h