Removed energyhistory code from typedefs to a separate file.
authorDavid van der Spoel <spoel@xray.bmc.uu.se>
Wed, 14 Oct 2015 14:47:57 +0000 (16:47 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Fri, 23 Oct 2015 17:46:32 +0000 (19:46 +0200)
commit100c415a90a9fc132f1188e71b48a4ecdabdff7f
treef9f95de5414d5b40dcccd4f537c446fc56e29605
parent6f356a704e369e3f9fc6cd360399819cffa9f3fe
Removed energyhistory code from typedefs to a separate file.

Cleaning up of typedefs.h and typedefs.cpp. It turns out there is
a circular dependency since initiation is done in gmxlib while updating
is done in mdlib. Since energyhistory is also part of the t_state struct
it is needed in gmxlib for now though, therefore the mdlib routines
still have access to the innards of the structure. Moving the updating
to gmxlib would on the other hand involve access from gmxlib to the
mdebin stuff in mdlib which is a worse solution.

Change-Id: Id22283d6737bec371c833040b59e85770886abaa
12 files changed:
src/gromacs/gmxlib/checkpoint.cpp
src/gromacs/gmxlib/energyhistory.cpp [new file with mode: 0644]
src/gromacs/gmxlib/energyhistory.h [new file with mode: 0644]
src/gromacs/gmxlib/typedefs.cpp
src/gromacs/legacyheaders/typedefs.h
src/gromacs/legacyheaders/types/state.h
src/gromacs/mdlib/md_support.cpp
src/gromacs/mdlib/mdebin.cpp
src/gromacs/mdlib/mdebin.h
src/gromacs/mdlib/mdebin_bar.cpp
src/gromacs/mdlib/trajectory_writing.cpp
src/programs/mdrun/md.cpp