Gromacs
2019-beta2
|
#include <gromacs/mdrun/simulationcontext.h>
Simulation environment and configuration.
SimulationContext allows a simulation module () to retrieve runtime parameters and resources from client code. The client retains ownership of the context and its resources, with exceptions as noted.
The public interface of SimulationContext is not yet well-specified. Client code can create an instance with gmx::createSimulationContext()
Public Member Functions | |
SimulationContext ()=delete | |
Object must be initialized with non-default constructor. | |
SimulationContext (t_commrec *communicationRecord) | |
Initializate with borrowed values. More... | |
Public Attributes | |
t_commrec * | communicationRecord_ |
Non-owning communicator handle. More... | |
|
explicit |
Initializate with borrowed values.
communicationRecord | non-owning communication record handle. |
Client code is responsible for cleaning up communicationRecord after SimulationContext is destroyed.
t_commrec* gmx::SimulationContext::communicationRecord_ |
Non-owning communicator handle.
Communication record is allocated, initialized, and finalized by client code without clearly transferring ownership.