Skip to content

Commit 0384d07

Browse files
fix all solver specific tests
1 parent 25efbff commit 0384d07

File tree

5 files changed

+17
-16
lines changed

5 files changed

+17
-16
lines changed

lib/OrdinaryDiffEqBDF/src/dae_caches.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ get_fsalfirstlast(cache::DAEBDFMutableCache,u) = (cache.fsalfirst, du_alias_or_n
1212
nlsolver::N
1313
end
1414

15+
# Not FSAL
16+
get_fsalfirstlast(cache::DImplicitEulerCache,u) = (u,u)
17+
1518
mutable struct DImplicitEulerConstantCache{N} <: OrdinaryDiffEqConstantCache
1619
nlsolver::N
1720
end

lib/OrdinaryDiffEqExponentialRK/src/exponential_rk_caches.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,7 @@ end
892892
B1::expType # ϕ1(hA) + ϕ2(hA)
893893
B0::expType # -ϕ2(hA)
894894
end
895-
get_fsalfirstlast(cache::ETD2,u) = (ETD2Fsal(cache.rtmp1), ETD2Fsal(cache.rtmp1))
895+
get_fsalfirstlast(cache::ETD2Cache,u) = (ETD2Fsal(cache.rtmp1), ETD2Fsal(cache.rtmp1))
896896

897897
function alg_cache(alg::ETD2, u, rate_prototype, ::Type{uEltypeNoUnits},
898898
::Type{uBottomEltypeNoUnits}, ::Type{tTypeNoUnits}, uprev, uprev2, f, t,

lib/OrdinaryDiffEqNordsieck/src/nordsieck_caches.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,4 +265,4 @@ function alg_cache(alg::JVODE, u, rate_prototype, ::Type{uEltypeNoUnits},
265265
dts, Δ, atmp, tsit5cache, 2, 1, 1, 2, η, η, η, η, η)
266266
end
267267

268-
get_fsalfirstlast(cache::Union{JVODE, AN5},u) = get_fsalfirstlast(cache.tsit5cache,u)
268+
get_fsalfirstlast(cache::Union{JVODECache, AN5Cache},u) = get_fsalfirstlast(cache.tsit5cache,u)

lib/OrdinaryDiffEqSSPRK/src/ssprk_caches.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,7 @@ function alg_cache(alg::SHLDDRK52, u, rate_prototype, ::Type{uEltypeNoUnits},
282282
end
283283

284284
@cache mutable struct SHLDDRK_2NCache{uType, rateType, TabType, StageLimiter, StepLimiter,
285-
Thread} <:
286-
OrdinaryDiffEqMutableCache
285+
Thread} <: SSPRKMutableCache
287286
u::uType
288287
uprev::uType
289288
k::rateType
@@ -1028,8 +1027,7 @@ end
10281027
StageLimiter,
10291028
StepLimiter,
10301029
Thread
1031-
} <:
1032-
OrdinaryDiffEqMutableCache
1030+
} <: SSPRKMutableCache
10331031
u::uType
10341032
uprev::uType
10351033
fsalfirst::rateType

lib/OrdinaryDiffEqSymplecticRK/src/symplectic_tableaus.jl

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
struct Symplectic2ConstantCache{T, T2} <: OrdinaryDiffEqConstantCache
1+
struct Symplectic2ConstantCache{T, T2} <: HamiltonConstantCache
22
a1::T
33
a2::T
44
b1::T
@@ -29,7 +29,7 @@ function VerletLeapfrogConstantCache(T, T2)
2929
Symplectic2ConstantCache{T, T2}(a1, a2, b1, b2)
3030
end
3131

32-
struct Symplectic3ConstantCache{T, T2} <: OrdinaryDiffEqConstantCache
32+
struct Symplectic3ConstantCache{T, T2} <: HamiltonConstantCache
3333
a1::T
3434
a2::T
3535
a3::T
@@ -58,7 +58,7 @@ function McAte3ConstantCache(T, T2)
5858
Symplectic3ConstantCache{T, T2}(a1, a2, a3, b1, b2, b3)
5959
end
6060

61-
struct Symplectic4ConstantCache{T, T2} <: OrdinaryDiffEqConstantCache
61+
struct Symplectic4ConstantCache{T, T2} <: HamiltonConstantCache
6262
a1::T
6363
a2::T
6464
a3::T
@@ -105,7 +105,7 @@ function McAte4ConstantCache(T::Type, T2::Type)
105105
Symplectic4ConstantCache{T, T2}(a1, a2, a3, a4, b1, b2, b3, b4)
106106
end
107107

108-
struct Symplectic45ConstantCache{T, T2} <: OrdinaryDiffEqConstantCache
108+
struct Symplectic45ConstantCache{T, T2} <: HamiltonConstantCache
109109
a1::T
110110
a2::T
111111
a3::T
@@ -163,7 +163,7 @@ function McAte42ConstantCache(T::Type, T2::Type)
163163
Symplectic45ConstantCache{T, T2}(a1, a2, a3, a4, a5, b1, b2, b3, b4, b5)
164164
end
165165

166-
struct Symplectic5ConstantCache{T, T2} <: OrdinaryDiffEqConstantCache
166+
struct Symplectic5ConstantCache{T, T2} <: HamiltonConstantCache
167167
a1::T
168168
a2::T
169169
a3::T
@@ -210,7 +210,7 @@ function McAte5ConstantCache(T::Type, T2::Type)
210210
Symplectic5ConstantCache{T, T2}(a1, a2, a3, a4, a5, a6, b1, b2, b3, b4, b5, b6)
211211
end
212212

213-
struct Symplectic6ConstantCache{T, T2} <: OrdinaryDiffEqConstantCache
213+
struct Symplectic6ConstantCache{T, T2} <: HamiltonConstantCache
214214
a1::T
215215
a2::T
216216
a3::T
@@ -250,7 +250,7 @@ function Yoshida6ConstantCache(T, T2)
250250
b7, b8)
251251
end
252252

253-
struct Symplectic62ConstantCache{T, T2} <: OrdinaryDiffEqConstantCache
253+
struct Symplectic62ConstantCache{T, T2} <: HamiltonConstantCache
254254
a1::T
255255
a2::T
256256
a3::T
@@ -323,7 +323,7 @@ function KahanLi6ConstantCache(T::Type, T2::Type)
323323
b4, b5, b6, b7, b8, b9, b10)
324324
end
325325

326-
struct McAte8ConstantCache{T, T2} <: OrdinaryDiffEqConstantCache
326+
struct McAte8ConstantCache{T, T2} <: HamiltonConstantCache
327327
a1::T
328328
a2::T
329329
a3::T
@@ -436,7 +436,7 @@ function McAte8ConstantCache(T::Type, T2::Type)
436436
b15, b16)
437437
end
438438

439-
struct KahanLi8ConstantCache{T, T2} <: OrdinaryDiffEqConstantCache
439+
struct KahanLi8ConstantCache{T, T2} <: HamiltonConstantCache
440440
a1::T
441441
a2::T
442442
a3::T
@@ -561,7 +561,7 @@ function KahanLi8ConstantCache(T::Type, T2::Type)
561561
b14, b15, b16, b17, b18)
562562
end
563563

564-
struct SofSpa10ConstantCache{T, T2} <: OrdinaryDiffEqConstantCache
564+
struct SofSpa10ConstantCache{T, T2} <: HamiltonConstantCache
565565
a1::T
566566
a2::T
567567
a3::T

0 commit comments

Comments
 (0)