[yt-svn] commit/yt: 2 new changesets

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Tue Apr 9 12:51:03 PDT 2013


2 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/56a2f92a6299/
Changeset:   56a2f92a6299
Branch:      yt
User:        jsoishi
Date:        2013-04-09 19:44:18
Summary:     corrected for the fact that enzo uses specific energy instead of energy density. Thanks to David Collins for the catch.
Affected #:  1 file

diff -r 8d14a55aefcdda5a65309c1102a95ad87ddb8515 -r 56a2f92a62997a0aa99bc43626830dc7f40b88bf yt/frontends/enzo/fields.py
--- a/yt/frontends/enzo/fields.py
+++ b/yt/frontends/enzo/fields.py
@@ -138,7 +138,8 @@
         return data["TotalEnergy"] - 0.5*(
             data["x-velocity"]**2.0
             + data["y-velocity"]**2.0
-            + data["z-velocity"]**2.0 ) - data["MagneticEnergy"]
+            + data["z-velocity"]**2.0 ) 
+            - data["MagneticEnergy"]/data["Density"]
 
     return data["TotalEnergy"] - 0.5*(
         data["x-velocity"]**2.0


https://bitbucket.org/yt_analysis/yt/commits/77f18fb5b757/
Changeset:   77f18fb5b757
Branch:      yt
User:        jsoishi
Date:        2013-04-09 19:47:49
Summary:     fixed typo.
Affected #:  1 file

diff -r 56a2f92a62997a0aa99bc43626830dc7f40b88bf -r 77f18fb5b757b6051dada9e2bad7774938a62064 yt/frontends/enzo/fields.py
--- a/yt/frontends/enzo/fields.py
+++ b/yt/frontends/enzo/fields.py
@@ -138,7 +138,7 @@
         return data["TotalEnergy"] - 0.5*(
             data["x-velocity"]**2.0
             + data["y-velocity"]**2.0
-            + data["z-velocity"]**2.0 ) 
+            + data["z-velocity"]**2.0 ) \
             - data["MagneticEnergy"]/data["Density"]
 
     return data["TotalEnergy"] - 0.5*(

Repository URL: https://bitbucket.org/yt_analysis/yt/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the yt-svn mailing list