Skip to content

Commit a6ef551

Browse files
committed
allow t0 in reinit! of discrete
1 parent 2e61c3a commit a6ef551

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "DynamicalSystemsBase"
22
uuid = "6e36e845-645a-534a-86f2-f5d4aa5a06b4"
33
repo = "https://github.com/JuliaDynamics/DynamicalSystemsBase.jl.git"
4-
version = "1.5.1"
4+
version = "1.5.2"
55

66
[deps]
77
DelayEmbeddings = "5732040d-69e3-5649-938a-b6b4f237613f"

src/discrete.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ isinplace(::MDI{IIP}) where {IIP} = IIP
2020
stateeltype(::MDI{IIP, S}) where {IIP, S} = eltype(S)
2121
stateeltype(::MDI{IIP, S}) where {IIP, S<:Vector{<:AbstractArray{T}}} where {T} = T
2222

23-
function reinit!(integ::MDI, u = integ.u, Q0 = nothing)
23+
function reinit!(integ::MDI, u = integ.u, Q0 = nothing; t0 = integ.t0)
2424
integ.u = u
2525
integ.dummy = u
26-
integ.t = integ.t0
26+
integ.t = t0
2727
if Q0 != nothing
2828
set_deviations!(integ, Q0)
2929
end
@@ -118,12 +118,12 @@ u_modified!(t::TDI, a) = nothing
118118
get_deviations(t::TDI) = t.W
119119
set_deviations!(t::TDI, Q) = (t.W = Q)
120120

121-
function reinit!(integ::TDI, u = integ.u, Q0 = nothing)
121+
function reinit!(integ::TDI, u = integ.u, Q0 = nothing; t0 = integ.t0)
122122
set_state!(integ, u)
123123
if Q0 != nothing
124124
set_deviations!(integ, Q0)
125125
end
126-
integ.t = integ.t0
126+
integ.t = t0
127127
return
128128
end
129129

0 commit comments

Comments
 (0)