--- trunk/OOPSE/libmdtools/Thermo.cpp 2004/04/22 21:33:55 1131 +++ trunk/OOPSE/libmdtools/Thermo.cpp 2004/04/26 14:29:18 1133 @@ -16,6 +16,10 @@ using namespace std; #define __C #include "mpiSimulation.hpp" #endif // is_mpi + +inline double roundMe( double x ){ + return ( x >= 0 ) ? floor( x + 0.5 ) : ceil( x - 0.5 ); +} Thermo::Thermo( SimInfo* the_info ) { info = the_info; @@ -447,4 +451,4 @@ void Thermo::removeCOMdrift() { info->integrableObjects[vd]->setVel( aVel ); } -} \ No newline at end of file +}