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

Comparing branches/new_design/OOPSE-2.0/src/integrators/Integrator.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 62 | Line 62 | class Integrator {
62          }
63  
64          void setForceManager(ForceManager* forceMan) {
65 <            if (forceMan_  != NULL) {
65 >            if (forceMan_ != forceMan && forceMan_  != NULL) {
66                  delete forceMan_;
67              }
68              forceMan_ = forceMan;
69          }
70  
71          void setVelocitizer(Velocitizer* velocitizer) {
72 <            if (velocitizer_  != NULL) {
72 >            if (velocitizer_ != velocitizer && velocitizer_  != NULL) {
73                  delete velocitizer_;
74              }
75              velocitizer_  = velocitizer;
# Line 106 | Line 106 | class Integrator {
106      private:
107          
108          virtual double calcConservedQuantity() = 0;
109 +        
110          virtual DumpWriter* createDumpWriter() = 0;
111 +        
112          virtual StatWriter* createStatWriter() = 0;
111
113   };
114  
115      

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines