Skip to content

Commit

Permalink
hotfix iterative wrappers
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Dec 18, 2021
1 parent a50edb6 commit 6a2eca7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "LinearSolve"
uuid = "7ed4a6bd-45f5-4d41-b270-4a48e9bafcae"
authors = ["SciML"]
version = "0.2.4"
version = "0.2.5"

[deps]
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
Expand Down
2 changes: 1 addition & 1 deletion src/iterative_wrappers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ function init_cacheval(alg::IterativeSolversJL, A, b, u, Pl, Pr, maxiters, absto
end

function SciMLBase.solve(cache::LinearCache, alg::IterativeSolversJL; kwargs...)
if cache.isfresh || !(alg <: IterativeSolvers.GMRESIterable)
if cache.isfresh || !(typeof(alg) <: IterativeSolvers.GMRESIterable)
solver = init_cacheval(alg, cache.A, cache.b, cache.u, cache.Pl, cache.Pr, cache.maxiters, cache.abstol, cache.reltol, cache.verbose)
cache = set_cacheval(cache, solver)
end
Expand Down

0 comments on commit 6a2eca7

Please sign in to comment.