Skip to content

Commit

Permalink
Adopt KrylovSubspace Vtype to u
Browse files Browse the repository at this point in the history
  • Loading branch information
mcarmesin committed Nov 18, 2024
1 parent 34a49c1 commit 8cad990
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/OrdinaryDiffEqLinear/src/linear_caches.jl
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ function alg_cache(alg::LinearExponential, u, rate_prototype, ::Type{uEltypeNoUn
if alg.krylov == :off
KsCache = nothing
elseif alg.krylov == :simple
Ks = KrylovSubspace{T}(n, m)
Ks = KrylovSubspace{T,T,typeof(similar(u,size(u,1),2))}(n, m)
expv_cache = ExpvCache{T}(m)
KsCache = (Ks, expv_cache)
elseif alg.krylov == :adaptive
Expand Down

0 comments on commit 8cad990

Please sign in to comment.