Skip to content

Commit 120708c

Browse files
committed
Cleanup pardiso test
* prevent soft scope warning in 1.12 * slightly relax accuracy for current panua pardiso * ran locally with both MKL and Panua * tested locally with JuliaSparse/Pardiso.jl#117 which introduces finalizers
1 parent 0ca5459 commit 120708c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/pardiso/pardiso.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ linsolve.A = copy(A2)
6060
sol13 = solve!(linsolve)
6161

6262
for alg in algs
63-
linsolve = init(prob, alg)
63+
local linsolve = init(prob, alg)
6464
sol31 = solve!(linsolve)
6565
linsolve.b = copy(b2)
6666
sol32 = solve!(linsolve)
@@ -147,11 +147,11 @@ function makeA()
147147
end
148148

149149
for alg in algs
150-
A = makeA()
150+
local A = makeA()
151151
u0 = fill(0.1, size(A, 2))
152152
linprob = LinearProblem(A, A * u0)
153153
u = LinearSolve.solve(linprob, alg)
154-
@test norm(u - u0) < 1.0e-14
154+
@test norm(u - u0) < 5.0e-14
155155
end
156156

157157
# Testing and demonstrating Pardiso.set_iparm! for MKLPardisoSolver

0 commit comments

Comments
 (0)