Add function calls to MdModules to sign up for notifications
authorChristian Blau <cblau@gwdg.de>
Tue, 21 Jan 2020 10:05:03 +0000 (11:05 +0100)
committerChristian Blau <cblau@gwdg.de>
Thu, 5 Mar 2020 10:00:21 +0000 (11:00 +0100)
commit5c8a022942806438c736ec7b97581304e6ef0e15
tree4bad58d227b8c3866a6528421587622b8e57e967
parent64eb67be136a5806341264a9b4b6b47eaea1184f
Add function calls to MdModules to sign up for notifications

Allow MdModules to sign up to notifications after they know their own
options. This makes it possible that modules only get called back when
they need to and not by default and skips the if(active) logic in
functions that are called back in favour of not subscribing to the
notifications to begin with.

refs #3076

Change-Id: Ib95c1f734f919805c661ac6f6451af5da8187eec
13 files changed:
src/gromacs/applied_forces/densityfitting.cpp
src/gromacs/applied_forces/densityfitting.h
src/gromacs/applied_forces/electricfield.cpp
src/gromacs/applied_forces/tests/densityfitting.cpp
src/gromacs/gmxpreprocess/grompp.cpp
src/gromacs/imd/imd.cpp
src/gromacs/mdrun/mdmodules.cpp
src/gromacs/mdrun/mdmodules.h
src/gromacs/mdrun/runner.cpp
src/gromacs/mdtypes/imdmodule.h
src/gromacs/restraint/restraintmdmodule.cpp
src/gromacs/restraint/restraintmdmodule.h
src/gromacs/swap/swapcoords.cpp