Skip to content

Commit

Permalink
Suggestions from @devmotion
Browse files Browse the repository at this point in the history
Co-authored-by: David Widmann <devmotion@users.noreply.github.com>
  • Loading branch information
wi11dey and devmotion committed Jan 31, 2021
1 parent 954b14f commit c555ead
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/problems/dde_problems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ struct DynamicalDDEProblem{iip} <: AbstractDynamicalDDEProblem end
Define a dynamical DDE problem from a [`DynamicalDDEFunction`](@ref).
"""
function DynamicalDDEProblem(f::DynamicalDDEFunction,v0,u0,h::Function,tspan,p=NullParameters();dependent_lags=(),kwargs...)
function DynamicalDDEProblem(f::DynamicalDDEFunction,v0,u0,h,tspan,p=NullParameters();dependent_lags=(),kwargs...)
DDEProblem(f,ArrayPartition(v0,u0),h,tspan,p;
problem_type=DynamicalDDEProblem{isinplace(f)}(),
dependent_lags=ntuple(i->(u,p,t)->dependent_lags[i](u[1],u[2],p,t),length(dependent_lags)),
kwargs...)
end
function DynamicalDDEProblem(f::DynamicalDDEFunction,h::Function,tspan,p=NullParameters();kwargs...)
function DynamicalDDEProblem(f::DynamicalDDEFunction,h,tspan,p=NullParameters();kwargs...)
DynamicalDDEProblem(f,h(p,first(tspan))...,h,tspan,p;kwargs...)
end
function DynamicalDDEProblem(f1::Function,f2::Function,args...;kwargs...)
Expand Down

0 comments on commit c555ead

Please sign in to comment.