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

Comparing branches/new_design/OOPSE-3.0/src/integrators/VelocityVerletIntegrator.hpp (file contents):
Revision 1819 by tim, Wed Dec 1 22:45:49 2004 UTC vs.
Revision 1820 by tim, Thu Dec 2 00:09:35 2004 UTC

# Line 35 | Line 35
35   #define INTEGRATORS_VELOCITYVERLETINTEGRATOR_HPP
36  
37   #include "integrators/Integrator.hpp"
38 + #include "integrators/RotationAlgorithm.hpp"
39  
40   namespace oopse {
41  
# Line 46 | Line 47 | class VelocityVerletIntegrator : public Integrator {
47   class VelocityVerletIntegrator : public Integrator {
48      public:
49          virtual ~VelocityVerletIntegrator();
50 <                
50 >
51 >        void setRotationAlgorithm(RotationAlgorithm* algo) {
52 >            if (algo != rotAlgo && rotAlgo != NULL){            
53 >                delete rotAlgo;
54 >            }
55 >            
56 >            rotAlgo = algo;
57 >        }
58 >        
59      protected:
60  
61          VelocityVerletIntegrator(SimInfo* info);
# Line 60 | Line 69 | class VelocityVerletIntegrator : public Integrator {
69          virtual void postStep();
70  
71          virtual void finalize();
72 +
73 +        RotationAlgorithm* rotAlgo;
74          
75          double dt2;
76  
# Line 77 | Line 88 | class VelocityVerletIntegrator : public Integrator {
88          
89          virtual void moveB() = 0;        
90  
91 +        virtual DumpWriter* createDumpWriter();
92 +        
93 +        virtual StatWriter* createStatWriter();
94  
81
95   };
96  
97   } //end namespace oopse

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines