[yt-svn] commit/yt: MatthewTurk: This needs to be nz, not hardcoded 8.

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Mon Sep 8 10:24:20 PDT 2014


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/793de33241a8/
Changeset:   793de33241a8
Branch:      yt
User:        MatthewTurk
Date:        2014-09-08 17:12:16
Summary:     This needs to be nz, not hardcoded 8.
Affected #:  1 file

diff -r c8042b5d05d064f8e5c38f03dd58a680a52036f3 -r 793de33241a8059c099cbaade4ec7ed0f1e1741f yt/geometry/oct_container.pyx
--- a/yt/geometry/oct_container.pyx
+++ b/yt/geometry/oct_container.pyx
@@ -418,7 +418,7 @@
         cdef np.ndarray[np.uint8_t, ndim=1] coords
         cdef OctVisitorData data
         self.setup_data(&data, domain_id)
-        coords = np.zeros((num_cells*8), dtype="uint8")
+        coords = np.zeros((num_cells*data.nz), dtype="uint8")
         data.array = <void *> coords.data
         self.visit_all_octs(selector, oct_visitors.mask_octs, &data)
         return coords.astype("bool")

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