ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-2.0/src/integrators/NVE.cpp
(Generate patch)

Comparing branches/new_design/OOPSE-2.0/src/integrators/NVE.cpp (file contents):
Revision 1820 by tim, Thu Dec 2 00:09:35 2004 UTC vs.
Revision 1837 by tim, Thu Dec 2 22:15:31 2004 UTC

# Line 30 | Line 30
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   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines