Gromacs
2024.3
|
#include <gromacs/modularsimulator/simulatoralgorithm.h>
The modular simulator.
Based on the input given, this simulator builds independent elements and signallers and stores them in a respective vector. The run function runs the simulation by, in turn, building a task list from the elements for a predefined number of steps, then running the task list, and repeating until the stop criterion is fulfilled.
The simulator algorithm is owning all elements involved in the simulation and is hence controlling their lifetime. This ensures that pointers and callbacks exchanged between elements remain valid throughout the duration of the simulation run.
Public Member Functions | |
const SimulatorRunFunction * | getNextTask () |
Get next task in queue. | |
Friends | |
class | ModularSimulatorAlgorithmBuilder |