ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/src/brains/Stats.cpp
(Generate patch)

Comparing trunk/OOPSE-4/src/brains/Stats.cpp (file contents):
Revision 1930 by gezelter, Wed Jan 12 22:41:40 2005 UTC vs.
Revision 2238 by tim, Sun May 22 21:05:15 2005 UTC

# Line 1 | Line 1
1 < /*
1 > /*
2   * Copyright (c) 2005 The University of Notre Dame. All Rights Reserved.
3   *
4   * The University of Notre Dame grants you ("Licensee") a
# Line 39 | Line 39
39   * such damages.
40   */
41    
42 < /**
43 <  * @file Stats.cpp
44 <  * @author tlin
45 <  * @date 11/04/2004
46 <  * @time 14:26am
47 <  * @version 1.0
48 <  */
42 > /**
43 > * @file Stats.cpp
44 > * @author tlin
45 > * @date 11/04/2004
46 > * @time 14:26am
47 > * @version 1.0
48 > */
49  
50   #include "brains/Stats.hpp"
51  
52   namespace oopse {
53  
54 < bool Stats::isInit_ = false;
55 < std::string Stats::title_[Stats::ENDINDEX - Stats::BEGININDEX];
56 < std::string Stats::units_[Stats::ENDINDEX - Stats::BEGININDEX];
54 >  bool Stats::isInit_ = false;
55 >  std::string Stats::title_[Stats::ENDINDEX - Stats::BEGININDEX];
56 >  std::string Stats::units_[Stats::ENDINDEX - Stats::BEGININDEX];
57  
58 < Stats::Stats() {
58 >  Stats::Stats() {
59  
60      if (!isInit_) {
61 <        init();
62 <        isInit_ = true;
61 >      init();
62 >      isInit_ = true;
63      }
64  
65 < }
65 >  }
66  
67 < void Stats::init() {
67 >  void Stats::init() {
68  
69      Stats::title_[TIME] = "Time";
70      Stats::title_[TOTAL_ENERGY] = "Total Energy";
# Line 85 | Line 85 | void Stats::init() {
85      Stats::title_[IMPROPER_POTENTIAL] = "Improper Potential";
86      Stats::title_[VRAW] = "Raw Potential";
87      Stats::title_[VHARM] = "Harmonic Potential";
88 +    Stats::title_[PRESSURE_TENSOR_X] = "presure tensor x";
89 +    Stats::title_[PRESSURE_TENSOR_Y] = "presure tensor y";
90 +    Stats::title_[PRESSURE_TENSOR_Z] = "presure tensor z";
91 +    
92  
93      Stats::units_[TIME] = "fs";
94      Stats::units_[TOTAL_ENERGY] = "kcal/mol";
# Line 105 | Line 109 | void Stats::init() {
109      Stats::units_[IMPROPER_POTENTIAL] = "kcal/mol";
110      Stats::units_[VRAW] = "kcal/mol";
111      Stats::units_[VHARM] = "kcal/mol";
112 < }
112 >    Stats::units_[PRESSURE_TENSOR_X] = "amu*fs^-2*Ang^-1";
113 >    Stats::units_[PRESSURE_TENSOR_Y] = "amu*fs^-2*Ang^-1";
114 >    Stats::units_[PRESSURE_TENSOR_Z] = "amu*fs^-2*Ang^-1";
115  
116 +  }
117 +
118   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines