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

Comparing trunk/src/brains/Stats.hpp (file contents):
Revision 681 by tim, Mon Oct 17 23:13:44 2005 UTC vs.
Revision 998 by chrisfen, Mon Jul 3 13:18:43 2006 UTC

# Line 86 | Line 86 | namespace oopse {
86        PRESSURE_TENSOR_X,
87        PRESSURE_TENSOR_Y,
88        PRESSURE_TENSOR_Z,  
89 +      BOX_DIPOLE_X,
90 +      BOX_DIPOLE_Y,
91 +      BOX_DIPOLE_Z,
92        ENDINDEX  //internal use
93      };
94  
95      Stats();
96 <    const double& operator [](int index) const {
96 >    const RealType& operator [](int index) const {
97        assert(index >=0 && index < ENDINDEX);
98        return data_[index];
99      }
100  
101 <    double& operator [](int index){
101 >    RealType& operator [](int index){
102        assert(index >=0 && index < ENDINDEX);            
103        return data_[index];
104      }
# Line 124 | Line 127 | namespace oopse {
127    private:
128      static void init();
129      static bool isInit_;
130 <    double data_[ENDINDEX - BEGININDEX];
130 >    RealType data_[ENDINDEX - BEGININDEX];
131      static std::string title_[ENDINDEX - BEGININDEX];
132      static std::string units_[ENDINDEX - BEGININDEX];
133      Mat3x3d tau_;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines