[Yt-svn] commit/yt: sskory: Fixing buffer size for contour finding.
Bitbucket
commits-noreply at bitbucket.org
Fri Mar 18 12:19:39 PDT 2011
1 new changeset in yt:
http://bitbucket.org/yt_analysis/yt/changeset/d6541a513417/
changeset: r3852:d6541a513417
branch: yt
user: sskory
date: 2011-03-18 20:19:13
summary: Fixing buffer size for contour finding.
affected #: 1 file (1 byte)
--- a/yt/utilities/_amr_utils/ContourFinding.pyx Thu Mar 17 17:08:17 2011 -0700
+++ b/yt/utilities/_amr_utils/ContourFinding.pyx Fri Mar 18 13:19:13 2011 -0600
@@ -49,7 +49,7 @@
ny = contour_ids.shape[1]
nz = contour_ids.shape[2]
# We allocate an array of fixed (maximum) size
- cdef int s = (ny*nx + nx*nz + nx*nz - 4) * 9
+ cdef int s = (ny*nx + nx*nz + ny*nz - 2) * 18
cdef np.ndarray[np.int64_t, ndim=2] tree = np.zeros((s, 2), dtype="int64")
cdef int ti = 0
# First x-pass
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