--- trunk/OOPSE/libmdtools/Thermo.cpp 2003/03/26 15:37:05 403 +++ trunk/OOPSE/libmdtools/Thermo.cpp 2003/03/27 20:12:15 423 @@ -94,8 +94,8 @@ double Thermo::getPotential(){ potential_local = 0.0; potential_local += entry_plug->lrPot; - for( el=0; elget_potential(); + for( el=0; eln_mol; el++ ){ + potential_local += entry_plug->molecules[el]->get_potential(); } // Get total potential for entire system from MPI.