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

Comparing branches/new_design/OOPSE-4/src/integrators/Integrator.hpp (file contents):
Revision 1846 by tim, Thu Dec 2 00:09:35 2004 UTC vs.
Revision 1847 by tim, Sat Dec 4 05:24:07 2004 UTC

# Line 77 | Line 77 | class Integrator {
77          
78      protected:
79  
80 +        Integrator(SimInfo* info);
81 +
82          virtual void doIntegrate() = 0;
83 +
84          virtual void doUpdate() {}
85          
86 <        Integrator(SimInfo* info);
86 >        void saveConservedQuantity() {
87 >            currentSnapshot_->statData[Stats::CONSERVED_QUANTITY] = calcConservedQuantity();
88 >        }
89          
90          SimInfo* info_;
91          ForceManager* forceMan_;
# Line 102 | Line 107 | class Integrator {
107          double dt;
108  
109          Snapshot* currentSnapshot_; //During the integration, the address of currentSnapshot Will not change
110 +
111          
112      private:
113          

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines