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 608 by gezelter, Tue Jul 15 14:45:09 2003 UTC vs.
Revision 611 by gezelter, Tue Jul 15 17:10:50 2003 UTC

# 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   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines