Support option assignment from different precision
authorTeemu Murtola <teemu.murtola@gmail.com>
Wed, 12 Oct 2016 17:09:26 +0000 (20:09 +0300)
committerRoland Schulz <roland.schulz@intel.com>
Mon, 17 Oct 2016 12:01:08 +0000 (14:01 +0200)
commit594600cca136cbcad68fb0e4ac83d77190893e23
tree3a2230547577b8d54ad6687808d3ba34cbbfbb41
parentfe91ec7e2d63c06ba7124092a75af1732331896c
Support option assignment from different precision

Make it possible to assign a value from float to DoubleOption and from
double to FloatOption.  This is needed to support tpr serialization for
cases where the code reading the file is different precision than what
wrote it.

Change-Id: Ib2268b343e4abbe70868d0d60b66559b8052c239
src/gromacs/options/basicoptions.cpp
src/gromacs/options/tests/optionsassigner.cpp
src/gromacs/options/valueconverter.h