ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/Thermo.cpp
(Generate patch)

Comparing trunk/OOPSE/libmdtools/Thermo.cpp (file contents):
Revision 588 by gezelter, Thu Jul 10 17:10:56 2003 UTC vs.
Revision 590 by mmeineke, Thu Jul 10 22:15:53 2003 UTC

# Line 181 | Line 181 | void Thermo::getPressureTensor(double press[3][3]){
181    double molmass, volume;
182    double vcom[3];
183    double p_local[9], p_global[9];
184 <  int i, j, k, nMols;
184 >  int i, j, k, l, nMols;
185    Molecule* molecules;
186  
187    nMols = entry_plug->n_mol;
# Line 223 | Line 223 | void Thermo::getPressureTensor(double press[3][3]){
223    for(i = 0; i < 3; i++) {
224      for (j = 0; j < 3; j++) {
225        k = 3*i + j;
226 <      press[i][j] = (p_global[k] - entry_plug->tau[k]*e_convert) / volume;
226 >      l = 3*j + i;
227 >      press[i][j] = (p_global[k] - entry_plug->tau[l]*e_convert) / volume;
228      }
229    }
230   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines