Skip to content

Commit

Permalink
handle constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Aug 18, 2024
1 parent e2c51e8 commit a176a62
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/OrdinaryDiffEqCore/src/caches/basic_caches.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ mutable struct DefaultCache{T1, T2, T3, T4, T5, T6, A, F, uType} <: OrdinaryDiff
cache5::T5
cache6::T6
u::uType
function DefaultCache{T1, T2, T3, T4, T5, T6, F}(
args, choice_function, current) where {T1, T2, T3, T4, T5, T6, F}
new{T1, T2, T3, T4, T5, T6, typeof(args), F}(args, choice_function, current)
function DefaultCache{T1, T2, T3, T4, T5, T6, F, uType}(
args, choice_function, current, u) where {T1, T2, T3, T4, T5, T6, F, uType}
new{T1, T2, T3, T4, T5, T6, typeof(args), F, uType}(args, choice_function, current, u)
end
end

function get_fsalfirstlast(cache::DefaultCache)
(u,u)
(cache.u,cache.u) # will be overwritten by the cache choice
end

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

0 comments on commit a176a62

Please sign in to comment.