[yt-svn] commit/yt: ngoldbaum: Fixing an error in grid_traversal.pyx

Bitbucket commits-noreply at bitbucket.org
Wed Nov 14 12:10:51 PST 2012


1 new commit in yt:


https://bitbucket.org/yt_analysis/yt/changeset/b0dcdb34be9e/
changeset:   b0dcdb34be9e
branch:      yt
user:        ngoldbaum
date:        2012-11-14 21:09:58
summary:     Fixing an error in grid_traversal.pyx
affected #:  1 file

diff -r e2d94c653c5ac243017f361ff4d20fb1c0522e57 -r b0dcdb34be9ee1eebdab4008ffdea8ca39e58f48 yt/utilities/lib/grid_traversal.pyx
--- a/yt/utilities/lib/grid_traversal.pyx
+++ b/yt/utilities/lib/grid_traversal.pyx
@@ -989,9 +989,9 @@
             tmax[i] = 1e60
     # We have to jumpstart our calculation
     for i in range(3):
-        if cur_ind[i] == vc.dims[i] and step[i] == 1:
+        if cur_ind[i] == vc.dims[i] and step[i] >= 0:
             return 0
-        if cur_ind[i] == -1 and step[i] == -1:
+        if cur_ind[i] == -1 and step[i] <= -1:
             return 0
     enter_t = intersect_t
     hit = 0

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