diff options
Diffstat (limited to 'dev-python/pyamg/files/2.0.0-stencil.patch')
-rw-r--r-- | dev-python/pyamg/files/2.0.0-stencil.patch | 11 |
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 00000000000..f000b93709a --- /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)): |