Skip to content

Commit af16d2a

Browse files
authored
Merge pull request #3857 from blnicho/fix-mumps
Relax mumps reallocation test
2 parents 837b614 + d6400da commit af16d2a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

doc/OnlineDocs/explanation/solvers/pynumero/tutorial.linear_solver_interfaces.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ Interface to MUMPS
6767
[-1. , -1. , -1. , 0. , 0. ]])
6868
>>> rhs = np.array([-0.67025575, -1.2, 0.1, 1.14872127, 1.25])
6969
>>> solver = MumpsCentralizedAssembledLinearSolver(sym=2, par=1, comm=None) # symmetric matrix; solve in serial
70-
>>> solver.do_symbolic_factorization(A)
71-
>>> solver.do_numeric_factorization(A)
72-
>>> x = solver.do_back_solve(rhs)
70+
>>> status = solver.do_symbolic_factorization(A)
71+
>>> status = solver.do_numeric_factorization(A)
72+
>>> x, status = solver.do_back_solve(rhs)
7373
>>> np.max(np.abs(A*x - rhs)) <= 1e-15
74-
True
74+
np.True_
7575

7676
Of course, SciPy solvers can also be used. See SciPy documentation for details.

pyomo/contrib/interior_point/tests/test_realloc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def test_mumps(self):
9090
# As of Mumps 5.6.2, predicted == 9, which is lower than the
9191
# default actual of 10.8
9292
# self.assertTrue(predicted == 12 or predicted == 11)
93-
self.assertTrue(actual > predicted)
93+
self.assertTrue(actual >= predicted)
9494
# NOTE: This test will break if Mumps (or your Mumps version)
9595
# gets more conservative at estimating memory requirement,
9696
# or if the numeric factorization gets more efficient.

0 commit comments

Comments
 (0)