Make AWH parameters proper C++
authorPaul Bauer <paul.bauer.q@gmail.com>
Wed, 10 Mar 2021 20:06:31 +0000 (20:06 +0000)
committerJoe Jordan <ejjordan12@gmail.com>
Wed, 10 Mar 2021 20:06:31 +0000 (20:06 +0000)
commitd4610e91e7815756f728e68785b58b884aead153
treef4d45287fecb3e174e607a95e75287d2842b956d
parente2a2fe80bd8e1af8e8d1385017fe4f96d77de2ce
Make AWH parameters proper C++

All structs have been converted to classes with RAII constructors.
Parameter objects can only be constructed from input data or
serializers.

Tests are adapted to use the new constructors, this means some code got
a bit ugly there.

This change is only refactoring, plus adding tests for the
serialization.
33 files changed:
src/gromacs/applied_forces/awh/awh.cpp
src/gromacs/applied_forces/awh/awh.h
src/gromacs/applied_forces/awh/bias.cpp
src/gromacs/applied_forces/awh/bias.h
src/gromacs/applied_forces/awh/biasgrid.cpp
src/gromacs/applied_forces/awh/biasgrid.h
src/gromacs/applied_forces/awh/biasparams.cpp
src/gromacs/applied_forces/awh/biasparams.h
src/gromacs/applied_forces/awh/biassharing.cpp
src/gromacs/applied_forces/awh/biassharing.h
src/gromacs/applied_forces/awh/biasstate.cpp
src/gromacs/applied_forces/awh/biasstate.h
src/gromacs/applied_forces/awh/coordstate.cpp
src/gromacs/applied_forces/awh/coordstate.h
src/gromacs/applied_forces/awh/histogramsize.cpp
src/gromacs/applied_forces/awh/histogramsize.h
src/gromacs/applied_forces/awh/read_params.cpp
src/gromacs/applied_forces/awh/read_params.h
src/gromacs/applied_forces/awh/tests/CMakeLists.txt
src/gromacs/applied_forces/awh/tests/awh_setup.cpp [new file with mode: 0644]
src/gromacs/applied_forces/awh/tests/awh_setup.h [new file with mode: 0644]
src/gromacs/applied_forces/awh/tests/bias.cpp
src/gromacs/applied_forces/awh/tests/bias_fep_lambda_state.cpp
src/gromacs/applied_forces/awh/tests/biasgrid.cpp
src/gromacs/applied_forces/awh/tests/biasstate.cpp
src/gromacs/fileio/tpxio.cpp
src/gromacs/gmxana/gmx_awh.cpp
src/gromacs/gmxpreprocess/grompp.cpp
src/gromacs/gmxpreprocess/readir.cpp
src/gromacs/mdrun/md.cpp
src/gromacs/mdtypes/awh_params.h
src/gromacs/mdtypes/inputrec.cpp
src/gromacs/mdtypes/inputrec.h