summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2011-08-06 19:37:36 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2011-08-06 19:37:36 +0000
commitc02e4d3126096606d8b519bfdab8d757f4197d76 (patch)
treebb30f27439feeb83b6b54a5c26be580289cfbddd /dev-python/pyamg/files
parentBSD fixes: Replaced dependency on app-shells/dash with app-shells/bash; Added... (diff)
downloadgentoo-2-c02e4d3126096606d8b519bfdab8d757f4197d76.tar.gz
gentoo-2-c02e4d3126096606d8b519bfdab8d757f4197d76.tar.bz2
gentoo-2-c02e4d3126096606d8b519bfdab8d757f4197d76.zip
upstream patch for newer numpy, bug #376597
(Portage version: 2.1.10.10/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/pyamg/files')
-rw-r--r--dev-python/pyamg/files/2.0.0-stencil.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/dev-python/pyamg/files/2.0.0-stencil.patch b/dev-python/pyamg/files/2.0.0-stencil.patch
new file mode 100644
index 000000000000..f000b93709ac
--- /dev/null
+++ b/dev-python/pyamg/files/2.0.0-stencil.patch
@@ -0,0 +1,11 @@
+--- pyamg/gallery/stencil.py.orig 2011-08-06 20:26:36.000000000 +0100
++++ pyamg/gallery/stencil.py 2011-08-06 20:27:12.000000000 +0100
+@@ -85,7 +85,7 @@
+
+ # compute index offset of each dof within the stencil
+ strides = numpy.cumprod( [1] + list(reversed(grid)) )[:-1]
+- indices = S.nonzero()
++ indices = tuple(i.copy() for i in S.nonzero())
+ for i,s in zip(indices,S.shape):
+ i -= s // 2
+ for stride,coords in zip(strides, reversed(indices)):