Skip to content

Commit 80d33c7

Browse files
ambigous bug fix
1 parent 4a12ce1 commit 80d33c7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/variable_rate.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ sol = solve(jprob, Tsit5())
276276
struct VR_Direct <: VariableRateAggregator end
277277
struct VR_DirectFW <: VariableRateAggregator end
278278

279-
mutable struct VR_DirectEventCache{T, RNG <: AbstractRNG, F1, F2}
279+
mutable struct VR_DirectEventCache{T, RNG, F1, F2}
280280
prev_time::T
281281
prev_threshold::T
282282
current_time::T
@@ -329,8 +329,8 @@ function initialize_vr_direct_cache!(cache::VR_DirectEventCache, u, t, integrato
329329
nothing
330330
end
331331

332-
@inline function concretize_vr_direct_affects!(cache::VR_DirectEventCache{T, RNG, F1, F2},
333-
::I) where {T, RNG, F1, F2, I <: DiffEqBase.DEIntegrator}
332+
@inline function concretize_vr_direct_affects!(cache::VR_DirectEventCache,
333+
::I) where {I <: DiffEqBase.DEIntegrator}
334334
if (cache.affect_funcs isa Vector) &&
335335
!(cache.affect_funcs isa Vector{FunctionWrappers.FunctionWrapper{Nothing, Tuple{I}}})
336336
AffectWrapper = FunctionWrappers.FunctionWrapper{Nothing, Tuple{I}}
@@ -455,8 +455,8 @@ end
455455
end
456456
end
457457

458-
@inline function execute_affect!(cache::VR_DirectEventCache{T, RNG, F1, F2},
459-
integrator::I, idx) where {T, RNG, F1, F2, I <: DiffEqBase.DEIntegrator}
458+
@inline function execute_affect!(cache::VR_DirectEventCache,
459+
integrator::I, idx) where {I <: DiffEqBase.DEIntegrator}
460460
@unpack affect_funcs = cache
461461
if affect_funcs isa Vector{FunctionWrappers.FunctionWrapper{Nothing, Tuple{I}}}
462462
@inbounds affect_funcs[idx](integrator)

0 commit comments

Comments
 (0)