Skip to content

Commit fe3c627

Browse files
some import fixes
1 parent b36ab7b commit fe3c627

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

lib/OrdinaryDiffEqExponentialRK/src/OrdinaryDiffEqExponentialRK.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ using RecursiveArrayTools
1010
using MuladdMacro, FastBroadcast
1111
using LinearAlgebra: axpy!, mul!
1212
using DiffEqBase, SciMLBase
13-
using ExponentialUtilities: _phiv_timestep_caches
13+
using ExponentialUtilities
1414

1515
include("algorithms.jl")
1616
include("alg_utils.jl")

lib/OrdinaryDiffEqLinear/src/OrdinaryDiffEqLinear.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ using LinearAlgebra: mul!
99
using DiffEqBase
1010
using SciMLOperators: AbstractSciMLOperator
1111
using ExponentialUtilities
12-
using ExponentialUtilities: _phiv_timestep_caches
1312

1413
include("algorithms.jl")
1514
include("alg_utils.jl")

lib/OrdinaryDiffEqLinear/src/linear_caches.jl

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,17 @@ end
562562
exp_cache::expType
563563
end
564564

565+
function _phiv_timestep_caches(u_prototype, maxiter::Int, p::Int)
566+
n = length(u_prototype)
567+
T = eltype(u_prototype)
568+
u = zero(u_prototype) # stores the current state
569+
W = Matrix{T}(undef, n, p + 1) # stores the w vectors
570+
P = Matrix{T}(undef, n, p + 2) # stores output from phiv!
571+
Ks = KrylovSubspace{T}(n, maxiter) # stores output from arnoldi!
572+
phiv_cache = PhivCache(u_prototype, maxiter, p + 1) # cache used by phiv! (need +1 for error estimation)
573+
return u, W, P, Ks, phiv_cache
574+
end
575+
565576
function alg_cache(alg::LinearExponential, u, rate_prototype, ::Type{uEltypeNoUnits},
566577
::Type{uBottomEltypeNoUnits},
567578
::Type{tTypeNoUnits}, uprev, uprev2, f, t, dt, reltol, p, calck,
@@ -585,4 +596,4 @@ function alg_cache(alg::LinearExponential, u, rate_prototype, ::Type{uEltypeNoUn
585596
end
586597
exp_cache = ExponentialUtilities.alloc_mem(f, ExpMethodGeneric())
587598
LinearExponentialCache(u, uprev, tmp, rtmp, KsCache, exp_cache)
588-
end
599+
end

0 commit comments

Comments
 (0)