[Yt-svn] yt-commit r630 - branches/yt-generalization/yt/lagos
joishi at wrangler.dreamhost.com
joishi at wrangler.dreamhost.com
Thu Jun 26 23:17:17 PDT 2008
Author: joishi
Date: Thu Jun 26 23:17:16 2008
New Revision: 630
URL: http://yt.spacepope.org/changeset/630
Log:
* missing factor of 0.5 in the thermal energy calculation
Modified:
branches/yt-generalization/yt/lagos/DerivedFields.py
Modified: branches/yt-generalization/yt/lagos/DerivedFields.py
==============================================================================
--- branches/yt-generalization/yt/lagos/DerivedFields.py (original)
+++ branches/yt-generalization/yt/lagos/DerivedFields.py Thu Jun 26 23:17:16 2008
@@ -451,7 +451,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