Skip to content

Commit

Permalink
fix smap psys dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
rusandris committed Nov 16, 2024
1 parent 96d41f1 commit 6acc2f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/derived_systems/parallel_systems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function ParallelDynamicalSystem(ds::CoreDynamicalSystem, states::Vector{<:Abstr
return ParallelDynamicalSystemAnalytic{typeof(pds), M}(pds, dynamic_rule(ds), prob)
end

function ParallelDynamicalSystem(smap::StroboscopicMap,states::Vector{<:AbstractArray{<:Real}})
function ParallelDynamicalSystem(smap::StroboscopicMap,states)
f, st = parallel_rule(smap.ds, states)
T = eltype(first(st))
prob = ODEProblem{true}(f, st, (T(initial_time(smap)), T(Inf)), current_parameters(smap))
Expand Down Expand Up @@ -178,7 +178,7 @@ function set_state!(pdsa::PDSAM, u::AbstractArray, i::Int = 1)
end


function set_state!(pdsa::PDSAM{<: StroboscopicMap}, u::AbstractArray, i::Int = 1) where D
function set_state!(pdsa::PDSAM{<: StroboscopicMap}, u::AbstractArray, i::Int = 1)
current_state(pdsa, i) .= u
u_modified!(pdsa.ds.ds.integ, true)
return pdsa
Expand Down

0 comments on commit 6acc2f4

Please sign in to comment.