[Yt-svn] yt-commit r629 - trunk/yt/lagos

mturk at wrangler.dreamhost.com mturk at wrangler.dreamhost.com
Thu Jun 26 23:16:50 PDT 2008


Author: mturk
Date: Thu Jun 26 23:16:50 2008
New Revision: 629
URL: http://yt.spacepope.org/changeset/629

Log:
Missing factor of a half in ThermalEnergy.



Modified:
   trunk/yt/lagos/DerivedFields.py

Modified: trunk/yt/lagos/DerivedFields.py
==============================================================================
--- trunk/yt/lagos/DerivedFields.py	(original)
+++ trunk/yt/lagos/DerivedFields.py	Thu Jun 26 23:16:50 2008
@@ -450,7 +450,7 @@
         if data.pf["DualEnergyFormalism"]:
             return data["Gas_Energy"]
         else:
-            return data["Total_Energy"] - (
+            return data["Total_Energy"] - 0.5*(
                    data["x-velocity"]**2.0
                  + data["y-velocity"]**2.0
                  + data["z-velocity"]**2.0 )



More information about the yt-svn mailing list