summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/pyamg/files/pyamg-4.0.0-test.patch')
-rw-r--r--dev-python/pyamg/files/pyamg-4.0.0-test.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/dev-python/pyamg/files/pyamg-4.0.0-test.patch b/dev-python/pyamg/files/pyamg-4.0.0-test.patch
new file mode 100644
index 000000000000..316d0a2baad4
--- /dev/null
+++ b/dev-python/pyamg/files/pyamg-4.0.0-test.patch
@@ -0,0 +1,14 @@
+Backported from: https://github.com/pyamg/pyamg/commit/6f5e549e6105e18cfff9bf4b5f1834d081fa4510
+Author: Luke Olson
+--- a/pyamg/aggregation/tests/test_smooth.py
++++ b/pyamg/aggregation/tests/test_smooth.py
+@@ -485,6 +485,9 @@ class TestEnergyMin(TestCase):
+ Bc = ml.levels[1].B
+ P = ml.levels[0].P.tocsr()
+
++ T.eliminate_zeros()
++ P.eliminate_zeros()
++
+ # P should preserve B in its range, wherever P
+ # has enough nonzeros
+ mask = ((P.indptr[1:] - P.indptr[:-1]) >= B.shape[1])