[yt-svn] commit/yt: MatthewTurk: I believe this fixes periodicity in radius.

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Tue Mar 19 11:36:02 PDT 2013


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/592dbaec8a44/
changeset:   592dbaec8a44
branch:      yt
user:        MatthewTurk
date:        2013-03-19 15:39:05
summary:     I believe this fixes periodicity in radius.

http://paste.yt-project.org/show/3266/

I have started a mailing list discussion about this issue.
affected #:  1 file

diff -r 37e33227a70d4db04d9715aaa195d1b5e6859c9f -r 592dbaec8a44664b878b286a23a14095ce1b694e yt/data_objects/universal_fields.py
--- a/yt/data_objects/universal_fields.py
+++ b/yt/data_objects/universal_fields.py
@@ -801,8 +801,9 @@
     for i, ax in enumerate('xyz'):
         np.subtract(data["%s%s" % (field_prefix, ax)], center[i], r)
         if data.pf.periodicity[i] == True:
-            np.subtract(DW[i], r, rdw)
             np.abs(r, r)
+            np.subtract(r, DW[i], rdw)
+            np.abs(rdw, rdw)
             np.minimum(r, rdw, r)
         np.power(r, 2.0, r)
         np.add(radius, r, radius)

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