[yt-svn] commit/yt: ngoldbaum: Fixing a unit issue in	universal_fields.py.
    commits-noreply at bitbucket.org 
    commits-noreply at bitbucket.org
       
    Sat Jul  6 09:15:45 PDT 2013
    
    
  
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/213d534593fb/
Changeset:   213d534593fb
Branch:      yt
User:        ngoldbaum
Date:        2013-07-06 06:55:11
Summary:     Fixing a unit issue in universal_fields.py.
Affected #:  1 file
diff -r 76b555d4075c708d15d5e157921dcd4fc80f364c -r 213d534593fb056814ce918c902e4fc3ea3360e9 yt/data_objects/universal_fields.py
--- a/yt/data_objects/universal_fields.py
+++ b/yt/data_objects/universal_fields.py
@@ -1415,7 +1415,7 @@
     domegax_dt = data["VorticityX"] / data["VorticityGrowthX"]
     domegay_dt = data["VorticityY"] / data["VorticityGrowthY"]
     domegaz_dt = data["VorticityZ"] / data["VorticityGrowthZ"]
-    return np.sqrt(domegax_dt**2 + domegay_dt**2 + domegaz_dt)
+    return np.sqrt(domegax_dt**2 + domegay_dt**2 + domegaz_dt**2)
 add_field("VorticityGrowthTimescale", function=_VorticityGrowthTimescale,
           validators=[ValidateSpatial(1, 
                       ["x-velocity", "y-velocity", "z-velocity"])],
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