ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/src/brains/Snapshot.hpp
(Generate patch)

Comparing trunk/src/brains/Snapshot.hpp (file contents):
Revision 665 by tim, Thu Oct 13 22:26:47 2005 UTC vs.
Revision 963 by tim, Wed May 17 21:51:42 2006 UTC

# Line 111 | Line 111 | namespace oopse{
111      /** Sets the H-Matrix */
112      void setHmat(const Mat3x3d& m);
113              
114 <    double getVolume() {
114 >    RealType getVolume() {
115        return hmat_.determinant();
116      }
117  
# Line 124 | Line 124 | namespace oopse{
124      void wrapVector(Vector3d& v);
125  
126              
127 <    double getTime() {
127 >    RealType getTime() {
128        return currentTime_;
129      }
130  
131 <    void increaseTime(double dt) {
131 >    void increaseTime(RealType dt) {
132        setTime(getTime() + dt);
133      }
134  
135 <    void setTime(double time) {
135 >    void setTime(RealType time) {
136        currentTime_ =time;
137        //time at statData is redundant
138        statData[Stats::TIME] = currentTime_;
139      }
140  
141 <    double getChi() {
141 >    RealType getChi() {
142        return chi_;
143      }
144  
145 <    void setChi(double chi) {
145 >    void setChi(RealType chi) {
146        chi_ = chi;
147      }
148  
149 <    double getIntegralOfChiDt() {
149 >    RealType getIntegralOfChiDt() {
150        return integralOfChiDt_;
151      }
152  
153 <    void setIntegralOfChiDt(double integralOfChiDt) {
153 >    void setIntegralOfChiDt(RealType integralOfChiDt) {
154        integralOfChiDt_ = integralOfChiDt;
155      }
156              
# Line 167 | Line 167 | namespace oopse{
167      Stats statData;
168              
169    private:
170 <    double currentTime_;
170 >    RealType currentTime_;
171  
172      Mat3x3d hmat_;
173      Mat3x3d invHmat_;
174      int orthoRhombic_;
175  
176 <    double chi_;
177 <    double integralOfChiDt_;
176 >    RealType chi_;
177 >    RealType integralOfChiDt_;
178      Mat3x3d eta_;
179              
180      int id_; /**< identification number of the snapshot */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines