fix-ftbfs-32bit
authorDebian Astronomy Team <debian-astro-maintainers@lists.alioth.debian.org>
Tue, 13 Sep 2016 02:50:04 +0000 (03:50 +0100)
committerBW Keller <malzraa@gmail.com>
Tue, 13 Sep 2016 02:50:04 +0000 (03:50 +0100)
Gbp-Pq: Name fix-ftbfs-32bit.patch

yt/geometry/particle_smooth.pyx

index f681631968b8b9459b8537c35243a785844074d1..807aef1b779d2726e1dde1930f399f97fd386b15 100644 (file)
@@ -349,8 +349,7 @@ cdef class ParticleSmoothOperation:
         # Note that what we will be providing to our processing functions will
         # actually be indirectly-sorted fields.  This preserves memory at the
         # expense of additional pointer lookups.
-        pind = np.argsort(pdoms)
-        pind = np.asarray(pind, dtype='int64', order='C')
+        pind = np.asarray(np.argsort(pdoms), dtype='int64', order='C')
         # So what this means is that we now have all the oct-0 particle indices
         # in order, then the oct-1, etc etc.
         # This now gives us the indices to the particles for each domain.