Eliminate main.h
authorMark Abraham <mark.j.abraham@gmail.com>
Wed, 12 Sep 2018 13:46:38 +0000 (15:46 +0200)
committerPaul Bauer <paul.bauer.q@gmail.com>
Thu, 13 Sep 2018 07:53:52 +0000 (09:53 +0200)
commit4efa3c64981539583c6a8be69578ffc955c9bea6
treef6f0105a59454b7e517d161037632441592f739d
parent6eb662a18d46dbd260365f643002fdc2dce62f21
Eliminate main.h

This generic file had generic content and will create cyclic
dependencies if not broken up into logical units.

Moved replica exchange code to be alongside the multisim code that it
needs. Moved multi-sim communication routines to be where other
low-level and multi-sim communication routines are found. Added simple
Doxygen, while leaving a suppression and TODO for the main
replica-exchange routines documentation, which is not in scope for
this change. Converted a define to a constexpr and made the include
guards match GROMACS style.

Change-Id: I123231d56bfa9a699ddbd32fec0b055cf14d93e3
17 files changed:
src/gromacs/gmxlib/network.cpp
src/gromacs/gmxlib/network.h
src/gromacs/listed-forces/disre.cpp
src/gromacs/listed-forces/orires.cpp
src/gromacs/mdlib/main.cpp [deleted file]
src/gromacs/mdrun/CMakeLists.txt
src/gromacs/mdrun/logging.cpp [new file with mode: 0644]
src/gromacs/mdrun/logging.h [new file with mode: 0644]
src/gromacs/mdrun/md.cpp
src/gromacs/mdrun/multisim.cpp [new file with mode: 0644]
src/gromacs/mdrun/multisim.h [moved from src/gromacs/mdlib/main.h with 59% similarity]
src/gromacs/mdrun/replicaexchange.cpp [moved from src/gromacs/mdlib/repl_ex.cpp with 94% similarity]
src/gromacs/mdrun/replicaexchange.h [moved from src/gromacs/mdlib/repl_ex.h with 70% similarity]
src/gromacs/mdrun/runner.cpp
src/gromacs/mdrun/runner.h
src/gromacs/mdrunutility/handlerestart.cpp
src/programs/mdrun/mdrun.cpp