[yt-svn] commit/yt: MatthewTurk: Quick fix for gids array being passed to Cython.

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Wed Jul 24 10:09:47 PDT 2013


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/30d7d5046213/
Changeset:   30d7d5046213
Branch:      yt
User:        MatthewTurk
Date:        2013-07-24 19:09:35
Summary:     Quick fix for gids array being passed to Cython.
Affected #:  1 file

diff -r f8fbed2bf4fa4d2dcc28d3ae407aea6efc880bcf -r 30d7d50462133455ee81d6dec3f7da5b37c5c31e yt/utilities/amr_kdtree/amr_kdtree.py
--- a/yt/utilities/amr_kdtree/amr_kdtree.py
+++ b/yt/utilities/amr_kdtree/amr_kdtree.py
@@ -107,7 +107,8 @@
         for lvl in lvl_range:
             gles = np.array([g.LeftEdge for g in grids if g.Level == lvl])
             gres = np.array([g.RightEdge for g in grids if g.Level == lvl])
-            gids = np.array([g.id for g in grids if g.Level == lvl])
+            gids = np.array([g.id for g in grids if g.Level == lvl],
+                            dtype="int64")
 
             add_pygrids(self.trunk, len(gids), gles, gres, gids, self.comm_rank, self.comm_size)
             del gles, gres, gids

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