1- mutable struct IMEXConstantCache {Tab, N} <: OrdinaryDiffEqConstantCache
1+ mutable struct ESDIRKIMEXConstantCache {Tab, N} <: OrdinaryDiffEqConstantCache
22 nlsolver:: N
33 tab:: Tab
44end
55
6- mutable struct IMEXCache {uType, rateType, uNoUnitsType, N, Tab, kType, StepLimiter} < :
6+ mutable struct ESDIRKIMEXCache {uType, rateType, uNoUnitsType, N, Tab, kType, StepLimiter} < :
77 SDIRKMutableCache
88 u:: uType
99 uprev:: uType
@@ -16,7 +16,7 @@ mutable struct IMEXCache{uType, rateType, uNoUnitsType, N, Tab, kType, StepLimit
1616 step_limiter!:: StepLimiter
1717end
1818
19- function full_cache (c:: IMEXCache )
19+ function full_cache (c:: ESDIRKIMEXCache )
2020 base = (c. u, c. uprev, c. fsalfirst, c. zs... , c. atmp)
2121 if eltype (c. ks) != = Nothing
2222 return tuple (base... , c. ks... )
@@ -25,28 +25,28 @@ function full_cache(c::IMEXCache)
2525end
2626
2727function alg_cache (
28- alg:: OrdinaryDiffEqNewtonAdaptiveIMEXAlgorithm , u, rate_prototype, :: Type{uEltypeNoUnits} ,
28+ alg:: OrdinaryDiffEqNewtonAdaptiveESDIRKAlgorithm , u, rate_prototype, :: Type{uEltypeNoUnits} ,
2929 :: Type{uBottomEltypeNoUnits} , :: Type{tTypeNoUnits} ,
3030 uprev, uprev2, f, t, dt, reltol, p, calck,
3131 :: Val{false} , verbose
3232 ) where {uEltypeNoUnits, uBottomEltypeNoUnits, tTypeNoUnits}
33- tab = IMEXTableau (alg, constvalue (uBottomEltypeNoUnits), constvalue (tTypeNoUnits))
33+ tab = ESDIRKIMEXTableau (alg, constvalue (uBottomEltypeNoUnits), constvalue (tTypeNoUnits))
3434 γ = tab. Ai[2 , 2 ]
3535 c = tab. c[2 ]
3636 nlsolver = build_nlsolver (
3737 alg, u, uprev, p, t, dt, f, rate_prototype, uEltypeNoUnits,
3838 uBottomEltypeNoUnits, tTypeNoUnits, γ, c, Val (false ), verbose
3939 )
40- return IMEXConstantCache (nlsolver, tab)
40+ return ESDIRKIMEXConstantCache (nlsolver, tab)
4141end
4242
4343function alg_cache (
44- alg:: OrdinaryDiffEqNewtonAdaptiveIMEXAlgorithm , u, rate_prototype, :: Type{uEltypeNoUnits} ,
44+ alg:: OrdinaryDiffEqNewtonAdaptiveESDIRKAlgorithm , u, rate_prototype, :: Type{uEltypeNoUnits} ,
4545 :: Type{uBottomEltypeNoUnits} ,
4646 :: Type{tTypeNoUnits} , uprev, uprev2, f, t, dt, reltol, p, calck,
4747 :: Val{true} , verbose
4848 ) where {uEltypeNoUnits, uBottomEltypeNoUnits, tTypeNoUnits}
49- tab = IMEXTableau (alg, constvalue (uBottomEltypeNoUnits), constvalue (tTypeNoUnits))
49+ tab = ESDIRKIMEXTableau (alg, constvalue (uBottomEltypeNoUnits), constvalue (tTypeNoUnits))
5050 γ = tab. Ai[2 , 2 ]
5151 c = tab. c[2 ]
5252 nlsolver = build_nlsolver (
@@ -67,12 +67,12 @@ function alg_cache(
6767 atmp = similar (u, uEltypeNoUnits)
6868 recursivefill! (atmp, false )
6969
70- return IMEXCache (
70+ return ESDIRKIMEXCache (
7171 u, uprev, fsalfirst, zs, ks, atmp, nlsolver, tab, alg. step_limiter!
7272 )
7373end
7474
75- function initialize! (integrator, cache:: IMEXConstantCache )
75+ function initialize! (integrator, cache:: ESDIRKIMEXConstantCache )
7676 integrator. kshortsize = 2
7777 integrator. k = typeof (integrator. k)(undef, integrator. kshortsize)
7878 integrator. fsalfirst = integrator. f (integrator. uprev, integrator. p, integrator. t)
@@ -83,7 +83,7 @@ function initialize!(integrator, cache::IMEXConstantCache)
8383 return nothing
8484end
8585
86- function initialize! (integrator, cache:: IMEXCache )
86+ function initialize! (integrator, cache:: ESDIRKIMEXCache )
8787 integrator. kshortsize = 2
8888 resize! (integrator. k, integrator. kshortsize)
8989 integrator. k[1 ] = integrator. fsalfirst
@@ -94,7 +94,7 @@ function initialize!(integrator, cache::IMEXCache)
9494end
9595
9696@muladd function perform_step! (
97- integrator, cache:: IMEXConstantCache , repeat_step = false
97+ integrator, cache:: ESDIRKIMEXConstantCache , repeat_step = false
9898 )
9999 (; t, dt, uprev, u, p) = integrator
100100 nlsolver = cache. nlsolver
208208 integrator. u = u
209209end
210210
211- @muladd function perform_step! (integrator, cache:: IMEXCache , repeat_step = false )
211+ @muladd function perform_step! (integrator, cache:: ESDIRKIMEXCache , repeat_step = false )
212212 (; t, dt, uprev, u, p) = integrator
213213 (; zs, ks, atmp, nlsolver, step_limiter!) = cache
214214 (; tmp) = nlsolver
0 commit comments