Skip to content

Commit

Permalink
Update static_arrays.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas authored Jul 29, 2024
1 parent 4cdf9fc commit 26574e6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/static_arrays.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ for alg in (nothing, LUFactorization(), SVDFactorization(), CholeskyFactorizatio
sol = solve(LinearProblem(A, b), alg)
@inferred solve(LinearProblem(A, b), alg)
@test norm(A * sol .- b) < 1e-10

@show alg
@test_nowarn __solve_no_alloc(A, b, alg) isa SciMLBase.LinearSolution
if alg isa KrylovJL_GMRES
@test_broken __solve_no_alloc(A, b, alg) isa SciMLBase.LinearSolution
else
@test_nowarn __solve_no_alloc(A, b, alg) isa SciMLBase.LinearSolution
end
cache = init(LinearProblem(A, b), alg)
sol = solve!(cache)
@test norm(A * sol .- b) < 1e-10
Expand Down

0 comments on commit 26574e6

Please sign in to comment.