[yt-svn] commit/yt: samskillman: Adding velocity fields to the ValidateSpatial call in VorticitySquared.

Bitbucket commits-noreply at bitbucket.org
Wed Jan 4 08:50:30 PST 2012


1 new commit in yt:


https://bitbucket.org/yt_analysis/yt/changeset/ba64780c99ed/
changeset:   ba64780c99ed
branch:      yt
user:        samskillman
date:        2012-01-04 17:50:19
summary:     Adding velocity fields to the ValidateSpatial call in VorticitySquared.
affected #:  1 file

diff -r 7310d5fcf89255079bc584370e3149cc745e7ad2 -r ba64780c99ed3b097b045e3dff50d60836507231 yt/data_objects/universal_fields.py
--- a/yt/data_objects/universal_fields.py
+++ b/yt/data_objects/universal_fields.py
@@ -882,6 +882,8 @@
 def _convertVorticitySquared(data):
     return data.convert("cm")**-2.0
 add_field("VorticitySquared", function=_VorticitySquared,
-          validators=[ValidateSpatial(1)],
+          validators=[ValidateSpatial(1,
+              ["x-velocity","y-velocity","z-velocity"])],
           units=r"\rm{s}^{-2}",
           convert_function=_convertVorticitySquared)
+

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