# | 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 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |