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 403 by chuckv, Wed Mar 26 15:37:05 2003 UTC vs.
Revision 423 by mmeineke, Thu Mar 27 20:12:15 2003 UTC

# Line 94 | Line 94 | double Thermo::getPotential(){
94    potential_local = 0.0;
95    potential_local += entry_plug->lrPot;
96  
97 <  for( el=0; el<nSRI; el++ ){    
98 <    potential_local += sris[el]->get_potential();
97 >  for( el=0; el<entry_plug->n_mol; el++ ){    
98 >    potential_local += entry_plug->molecules[el]->get_potential();
99    }
100  
101    // Get total potential for entire system from MPI.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines