ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-2.0/src/brains/Thermo.cpp
(Generate patch)

Comparing branches/new_design/OOPSE-2.0/src/brains/Thermo.cpp (file contents):
Revision 1846 by tim, Thu Dec 2 05:06:26 2004 UTC vs.
Revision 1847 by tim, Sat Dec 4 05:24:07 2004 UTC

# Line 36 | Line 36 | double Thermo::getKinetic() {
36              double mass = integrableObject->getMass();
37              Vector3d vel = integrableObject->getVel();
38  
39 <            kinetic = mass * (vel[0]*vel[0] + vel[1]*vel[1] + vel[2]*vel[2]);
39 >            kinetic += mass * (vel[0]*vel[0] + vel[1]*vel[1] + vel[2]*vel[2]);
40  
41              if (integrableObject->isDirectional()) {
42                  angMom = integrableObject->getJ();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines