Skip to content

Commit a504665

Browse files
auto float tolerances for KrylovJL
1 parent 251ba6f commit a504665

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/iterative_wrappers.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ function SciMLBase.solve(cache::LinearCache, alg::KrylovJL; kwargs...)
105105
M = (M === Identity()) ? I : InvPreconditioner(M)
106106
N = (N === Identity()) ? I : InvPreconditioner(N)
107107

108-
atol = cache.abstol
109-
rtol = cache.reltol
108+
atol = float(cache.abstol)
109+
rtol = float(cache.reltol)
110110
itmax = cache.maxiters
111111
verbose = cache.verbose ? 1 : 0
112112

0 commit comments

Comments
 (0)