Provide callbacks/notifications for MDModules
authorChristian Blau <cblau@gwdg.de>
Tue, 23 Jul 2019 15:25:06 +0000 (17:25 +0200)
committerChristian Blau <cblau@gwdg.de>
Thu, 8 Aug 2019 07:47:18 +0000 (09:47 +0200)
commit8b0ce9f55a2560c05f89fec04c9c6238387bf526
tree5b6a3fcbf2b7cccf4965bb94e621a600112895e9
parentf7940fa01e8b6ef0703236b53721cca2d81b40d3
Provide callbacks/notifications for MDModules

Adds functionality for MdModules to subscribe to be called back during
the simulation. Within the run, subscribed modules are notified of
events, that are distinguished by the function argument by the call back
function.

Implements the callbacks based on storing function pointers, following
the discussion in https://gerrit.gromacs.org/c/gromacs/+/10942

refs #2945

Change-Id: I61589215fa9beb79825f0b5261ed50b4116046ff
docs/doxygen/lib/mdmodules.md
src/gromacs/mdrun/mdmodulenotification.h [new file with mode: 0644]
src/gromacs/mdrun/mdmodules.cpp
src/gromacs/mdrun/mdmodules.h
src/gromacs/mdrun/runner.cpp
src/programs/mdrun/tests/CMakeLists.txt
src/programs/mdrun/tests/mdmodulenotification.cpp [new file with mode: 0644]