ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE_old/src/mdtools/libmdCode/Thermo.cpp
(Generate patch)

Comparing trunk/OOPSE_old/src/mdtools/libmdCode/Thermo.cpp (file contents):
Revision 369 by mmeineke, Fri Feb 14 21:53:47 2003 UTC vs.
Revision 370 by mmeineke, Thu Mar 20 17:10:43 2003 UTC

# Line 199 | Line 199 | void Thermo::velocitize() {
199      vdrift[1] += atoms[vd]->get_vy() * atoms[vd]->getMass();
200      vdrift[2] += atoms[vd]->get_vz() * atoms[vd]->getMass();
201      
202 <    mtot = mtot + atoms[vd]->getMass();
202 >    mtot += atoms[vd]->getMass();
203    }
204    
205    for (vd = 0; vd < 3; vd++) {
206      vdrift[vd] = vdrift[vd] / mtot;
207    }
208    
209 +
210    for(vd = 0; vd < n_atoms; vd++){
211      
212      vx = atoms[vd]->get_vx();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines