# | Line 217 | Line 217 | void Thermo::getPressureTensor(double press[3][3]){ | |
---|---|---|
217 | } | |
218 | #endif // is_mpi | |
219 | ||
220 | < | volume = entry_plug->boxVol; |
220 | > | volume = this->getVolume(); |
221 | ||
222 | for(i = 0; i < 3; i++) { | |
223 | for (j = 0; j < 3; j++) { | |
224 | k = 3*i + j; | |
225 | < | l = 3*j + i; |
226 | < | press[i][j] = (p_global[k] - entry_plug->tau[l]*e_convert) / volume; |
225 | > | press[i][j] = (p_global[k] + entry_plug->tau[k]*e_convert) / volume; |
226 | } | |
227 | } | |
228 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |