Remove dependence of compute_globals on t_state
authorPascal Merz <pascal.merz@me.com>
Mon, 1 Jul 2019 00:10:42 +0000 (18:10 -0600)
committerPaul Bauer <paul.bauer.q@gmail.com>
Thu, 11 Jul 2019 06:16:15 +0000 (08:16 +0200)
commit77e9dc592feca7bcf013980b0c294b34e2882906
treeab5c2a2925e1ae47f7baf849c0da4cb3389ce96f
parent39f0bb97329da7f5def44ccba75d88b163372671
Remove dependence of compute_globals on t_state

This change makes the different function related to compute_globals
request the fields of t_state explicitly, instead of simply taking
a pointer to the full t_state object. This simplifies refactoring
the t_state object in future commits. This change also clarifies why
both state->box and an additional parameter `matrix box` is required -
the latter one is the box at the last complete timestep in do_md and
has been renamed accordingly.

Note that in the documentation to checkNumberOfBondedInteractions(),
which was changed in a similar way, the argument `state` was
described as being the global state. Throughout the code, the local
state was used, however. This part of the documentation is now
changed, but if that was intended, then a follow-up change fixing
this might be necessary.

Change-Id: If913656fe9bf07567a29f68592402bb5ff17fc52
src/gromacs/domdec/domdec.h
src/gromacs/domdec/domdec_topology.cpp
src/gromacs/domdec/partition.cpp
src/gromacs/domdec/partition.h
src/gromacs/mdlib/md_support.cpp
src/gromacs/mdlib/md_support.h
src/gromacs/mdlib/update.cpp
src/gromacs/mdlib/update.h
src/gromacs/mdrun/md.cpp
src/gromacs/mdrun/mimic.cpp
src/gromacs/mdrun/rerun.cpp