[yt-svn] commit/yt-3.0: MatthewTurk: Fixing a typo in calculating dds in octrees

Bitbucket commits-noreply at bitbucket.org
Fri Jan 25 03:03:37 PST 2013


1 new commit in yt-3.0:

https://bitbucket.org/yt_analysis/yt-3.0/commits/4a75438eafcb/
changeset:   4a75438eafcb
branch:      yt-3.0
user:        MatthewTurk
date:        2013-01-25 12:03:25
summary:     Fixing a typo in calculating dds in octrees
affected #:  1 file

diff -r 1bab987a14ad7444c5a4baec791c283b7cb4c283 -r 4a75438eafcb349e21f9fe0df651b9f3c1d86179 yt/geometry/oct_container.pyx
--- a/yt/geometry/oct_container.pyx
+++ b/yt/geometry/oct_container.pyx
@@ -381,7 +381,7 @@
             in_boundary = 0
             for i in range(3):
                 pp[i] = pos[p, i]
-                dds[i] = (self.DRE[i] + self.DLE[i])/self.nn[i]
+                dds[i] = (self.DRE[i] - self.DLE[i])/self.nn[i]
                 ind[i] = <np.int64_t> ((pp[i] - self.DLE[i])/dds[i])
                 cp[i] = (ind[i] + 0.5) * dds[i]
                 if ind[i] < 0 or ind[i] >= self.nn[i]:

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

--

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