30 |
|
* @time 15:13am |
31 |
|
* @version 1.0 |
32 |
|
*/ |
33 |
< |
|
34 |
< |
#include "integrators/IntegratorFactory.hpp" |
33 |
> |
|
34 |
> |
#include "integrators/IntegratorCreator.hpp" |
35 |
|
#include "integrators/NVE.hpp" |
36 |
|
#include "primitives/Molecule.hpp" |
37 |
|
#include "utils/OOPSEConstant.hpp" |
38 |
|
|
39 |
|
namespace oopse { |
40 |
|
|
41 |
< |
Integrator* createNVE(SimInfo* info) { |
42 |
< |
return new NVE(info); |
43 |
< |
} |
41 |
> |
static IntegratorBuilder<NVE>* NVECreator = new IntegratorBuilder<NVE>("NVE"); |
42 |
|
|
45 |
– |
//register the creator to IntegratorFactory |
46 |
– |
bool registerNVEStatus = IntegratorFactory::getInstance()->registerIntegrator("NVE", createNVE); |
47 |
– |
|
43 |
|
NVE::NVE(SimInfo* info) : VelocityVerletIntegrator(info){ |
44 |
|
|
45 |
|
} |