Skip to content

Commit 2c01d68

Browse files
fix the true issue
1 parent bca9b0d commit 2c01d68

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

lib/OrdinaryDiffEqCore/src/caches/basic_caches.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ mutable struct CompositeCache{T, F} <: OrdinaryDiffEqCache
1717
end
1818

1919
function ismutablecache(cache::CompositeCache{T, F}) where {T, F}
20-
@show T
21-
@show eltype(T)
22-
@show eltype(T) <: OrdinaryDiffEqMutableCache
20+
eltype(T) <: OrdinaryDiffEqMutableCache
2321
end
2422

2523
function get_fsalfirstlast(cache::CompositeCache, u)
@@ -54,7 +52,7 @@ function get_fsalfirstlast(cache::DefaultCache, u)
5452
end
5553

5654
function ismutablecache(cache::DefaultCache{T1, T2, T3, T4, T5, T6, A, F, uType}) where {T1, T2, T3, T4, T5, T6, A, F, uType}
57-
T1 isa OrdinaryDiffEqMutableCache
55+
T1 <: OrdinaryDiffEqMutableCache
5856
end
5957

6058
function alg_cache(alg::CompositeAlgorithm, u, rate_prototype, ::Type{uEltypeNoUnits},

lib/OrdinaryDiffEqCore/src/integrators/integrator_utils.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,8 +482,7 @@ function reset_fsal!(integrator)
482482
# Ignore DAEs but they already re-ran initialization
483483
# Mass matrix DAEs do need to reset FSAL if available
484484
if !(integrator.sol.prob isa DAEProblem)
485-
@show integrator.cache
486-
if @show ismutablecache(integrator.cache)
485+
if ismutablecache(integrator.cache)
487486
integrator.f(integrator.fsalfirst, integrator.u, integrator.p, integrator.t)
488487
else
489488
integrator.fsalfirst = integrator.f(integrator.u, integrator.p, integrator.t)

0 commit comments

Comments
 (0)