[Yt-svn] yt-commit r463 - trunk/yt/lagos
    mturk at wrangler.dreamhost.com 
    mturk at wrangler.dreamhost.com
       
    Tue May 13 09:20:53 PDT 2008
    
    
  
Author: mturk
Date: Tue May 13 09:20:51 2008
New Revision: 463
URL: http://yt.spacepope.org/changeset/463
Log:
Bug fix.
Modified:
   trunk/yt/lagos/DerivedQuantities.py
Modified: trunk/yt/lagos/DerivedQuantities.py
==============================================================================
--- trunk/yt/lagos/DerivedQuantities.py	(original)
+++ trunk/yt/lagos/DerivedQuantities.py	Tue May 13 09:20:51 2008
@@ -160,8 +160,8 @@
     bv_x,bv_y,bv_z = data.quantities["BulkVelocity"]()
     kinetic = 0.5 * (data["CellMass"] * (
                        (data["x-velocity"] - bv_x)**2
-                       (data["y-velocity"] - bv_y)**2
-                       (data["z-velocity"] - bv_z)**2 )).sum()
+                     + (data["y-velocity"] - bv_y)**2
+                     + (data["z-velocity"] - bv_z)**2 )).sum()
     # Gravitational potential energy
     # We only divide once here because we have velocity in cgs, but radius is
     # in code.
    
    
More information about the yt-svn
mailing list