Move force buffer resizing to mdsetup
authorBerk Hess <hess@kth.se>
Mon, 6 Apr 2020 11:27:31 +0000 (11:27 +0000)
committerMark Abraham <mark.j.abraham@gmail.com>
Mon, 6 Apr 2020 11:27:31 +0000 (11:27 +0000)
commit1b815839362d34ec2b530a4a21a0b4c9628886be
treed2a738809d40ef255f5da13d304071fa9958160a
parent8726ce71ee350d1e278fda1414cccd839c875daa
Move force buffer resizing to mdsetup

Consolidate resizing of the force buffer passed to do_force() from
many places in the code to mdAlgorithmsSetupAtomData().
Now only the modular simulation does it's own resizing when not using
domain decomposition. Some refactoring is needed to avoid this.

Change-Id: I1320dffb7b42150f65c5c6a260a7e94e2f6806b5
19 files changed:
src/gromacs/domdec/distribute.cpp
src/gromacs/domdec/distribute.h
src/gromacs/domdec/mdsetup.cpp
src/gromacs/domdec/mdsetup.h
src/gromacs/domdec/partition.cpp
src/gromacs/domdec/redistribute.cpp
src/gromacs/domdec/redistribute.h
src/gromacs/domdec/utility.cpp
src/gromacs/domdec/utility.h
src/gromacs/mdlib/forcerec.cpp
src/gromacs/mdlib/sim_util.cpp
src/gromacs/mdrun/md.cpp
src/gromacs/mdrun/mimic.cpp
src/gromacs/mdrun/minimize.cpp
src/gromacs/mdrun/rerun.cpp
src/gromacs/mdrun/shellfc.cpp
src/gromacs/mdtypes/forcerec.h
src/gromacs/modularsimulator/topologyholder.cpp
src/gromacs/modularsimulator/topologyholder.h