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 |
|
} |
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_; |