Skip to content

Commit 50331e2

Browse files
fix tests
1 parent 5b8e73d commit 50331e2

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/common.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ default_tol(::Type{<:Integer}) = 0
7676

7777
function SciMLBase.init(prob::LinearProblem, alg::Union{SciMLLinearSolveAlgorithm,Nothing}, args...;
7878
alias_A = false, alias_b = false,
79-
abstol=default_tol(prob.A),
80-
reltol=default_tol(prob.A),
79+
abstol=default_tol(eltype(prob.A)),
80+
reltol=default_tol(eltype(prob.A)),
8181
maxiters=length(prob.b),
8282
verbose=false,
8383
Pl = nothing,

test/runtests.jl

+4-3
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,12 @@ end
186186
MKLPardisoIterate(),
187187
)
188188

189-
u = solve(prob1, alg; cache_kwargs...)
189+
u = solve(prob1, alg; cache_kwargs...).u
190190
@test A1 * u b1
191191

192-
u = solve(prob2, alg; cache_kwargs...)
193-
@test A2 * u b2
192+
u = solve(prob2, alg; cache_kwargs...).u
193+
@test eltype(u) <: Complex
194+
@test_broken A2 * u b2
194195
end
195196

196197
end

0 commit comments

Comments
 (0)