MaMiCo 1.2
|
factory to produced md simulation, md solver interface (for mamico) and the coupling cell service More...
#include <MDSimulationFactory.h>
Public Member Functions | |
coupling::interface::MDSimulation * | getMDSimulation (const simplemd::configurations::MolecularDynamicsConfiguration &configuration, const coupling::configurations::MaMiCoConfiguration< MDSIMULATIONFACTORY_DIMENSION > &mamicoConfiguration, MPI_Comm localComm) |
coupling::interface::MDSolverInterface< MY_LINKEDCELL, MDSIMULATIONFACTORY_DIMENSION > * | getMDSolverInterface (const simplemd::configurations::MolecularDynamicsConfiguration &configuration, const coupling::configurations::MaMiCoConfiguration< MDSIMULATIONFACTORY_DIMENSION > &mamicoConfiguration, coupling::interface::MDSimulation *mdSimulation) |
void | shutdownMDSolverInterface () |
Static Public Member Functions | |
static SimulationAndInterfaceFactory & | getInstance () |
Private Member Functions | |
SimulationAndInterfaceFactory () | |
~SimulationAndInterfaceFactory () | |
factory to produced md simulation, md solver interface (for mamico) and the coupling cell service
factory to produced md simulation, md solver interface (for mamico) and the coupling cell service using singleton pattern.
|
inlineprivate |
Private constructor
|
inlineprivate |
Private destructor
|
inlinestatic |
|
inline |
returns a pointer to the md simulation.
configuration | |
mamicoConfiguration | |
localComm |
|
inline |
returns the MD solver interface. This method should be called AFTER initialising the MD simulation AND AFTER the equilibration of MD. We thus expect that getMDSimulationInterface() and switchOnCoupling() of the MDSimulationInterface() have been called before.
configuration | |
mamicoConfiguration | |
mdSimulation |
|
inline |
shuts down the MD solver interfaces and deletes the interface if required (depending on the respective MD simulation)