--- trunk/OOPSE/libmdtools/Thermo.cpp 2003/04/10 16:22:00 486 +++ trunk/OOPSE/libmdtools/Thermo.cpp 2003/07/02 21:26:55 572 @@ -151,10 +151,7 @@ double Thermo::getVolume() { } double Thermo::getVolume() { - double theBox[3]; - - entry_plug->getBox(theBox); - return (theBox[0] * theBox[1] * theBox[2]); + return entry_plug->boxVol; } double Thermo::getPressure() { @@ -222,10 +219,8 @@ void Thermo::getPressureTensor(double press[9]){ } #endif // is_mpi - entry_plug->getBox(theBox); + volume = entry_plug->boxVol; - volume = theBox[0] * theBox[1] * theBox[2]; - for(i=0; i<9; i++) { press[i] = (p_global[i] - entry_plug->tau[i]*e_convert) / volume; }