Remove pbcutil <-> mdtypes cyclic dependency
commitb15c09b20ca9cd618fa77edebefa271982af0953
authorTeemu Murtola <teemu.murtola@gmail.com>
Thu, 25 May 2017 06:28:15 +0000 (25 09:28 +0300)
committerMark Abraham <mark.j.abraham@gmail.com>
Mon, 29 May 2017 13:30:15 +0000 (29 15:30 +0200)
treedbe21478b1d7b625d5310e6e401f58ce3fefda01
parent7eb6a185052995bd385994f6f63ef35e588a6d07
Remove pbcutil <-> mdtypes cyclic dependency

This may not be the cleanest solution, but it separates the
responsibilities of having knowledge of t_state and t_inputrec from
the low-level code of preserving the box shape.  For a cleaner solution,
do_box_rel() could be separated into separate init and perform
functions, and having an internal data structure so that only the init
function would need parameters like the dimensions to correct.
Other alternative would be to move also do_box_rel() into state.cpp, but
not sure if there was a deeper reason putting it in pbcutil in the first
place.

Part of #1854.

Change-Id: I7ae16d3c2e795bd08d28da6111debf5d9d17599e
docs/doxygen/cycle-suppressions.txt
src/gromacs/fileio/tpxio.cpp
src/gromacs/gmxpreprocess/grompp.cpp
src/gromacs/mdtypes/inputrec.cpp
src/gromacs/mdtypes/inputrec.h
src/gromacs/mdtypes/state.cpp
src/gromacs/mdtypes/state.h
src/gromacs/pbcutil/boxutilities.cpp
src/gromacs/pbcutil/boxutilities.h
src/gromacs/pbcutil/pbc.cpp
src/gromacs/pbcutil/pbc.h