Factory for creating t_inputrec
authorTeemu Murtola <teemu.murtola@gmail.com>
Mon, 27 Jun 2016 14:40:21 +0000 (17:40 +0300)
committerTeemu Murtola <teemu.murtola@gmail.com>
Mon, 27 Jun 2016 17:41:26 +0000 (20:41 +0300)
commit41e0f9cc70b5f89391029b1cabdd05ee7b2b9fc7
tree0b7446652b2c90dfe52ad549377d77aec32f40b0
parenta9df95b63f566c0e13e34c46f61db09084d469b8
Factory for creating t_inputrec

Add gmx::MDModules that encapsulates initialization of t_inputrec in all
places where it gets created.  This provides a single place that needs
to change with the introduction of a more modular approach for mdrun
modules.  Child changes will demonstrate how this can be used for the
external electric field code.  Split into a separate change to keep the
main change smaller and more focused.

For now, put the code in mdrunutility/, as it needs to be quite high in
the dependency stack, but a better home could be found in the future.

Related to #1972.

Change-Id: I0d86fe1a8bb8f8f872f5b37bc4e7931dceae9f09
15 files changed:
src/gromacs/fileio/tpxio.cpp
src/gromacs/gmxana/gmx_pme_error.cpp
src/gromacs/gmxana/gmx_spol.cpp
src/gromacs/gmxana/gmx_tune_pme.cpp
src/gromacs/gmxpreprocess/grompp.cpp
src/gromacs/mdrunutility/CMakeLists.txt
src/gromacs/mdrunutility/mdmodules.cpp [new file with mode: 0644]
src/gromacs/mdrunutility/mdmodules.h [new file with mode: 0644]
src/gromacs/mdtypes/inputrec.cpp
src/gromacs/mdtypes/inputrec.h
src/gromacs/tools/check.cpp
src/gromacs/tools/compare.cpp
src/gromacs/tools/convert_tpr.cpp
src/gromacs/tools/dump.cpp
src/programs/mdrun/runner.cpp