Skip to content

Commit fc07ba9

Browse files
fixup! refactor: allow changing name of parameter argument in delay_to_function
1 parent e6680f1 commit fc07ba9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/systems/diffeqs/abstractodesystem.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@ function isdelay(var, iv)
243243
end
244244
const DDE_HISTORY_FUN = Sym{Symbolics.FnType{Tuple{Any, <:Real}, Vector{Real}}}(:___history___)
245245
const DEFAULT_PARAMS_ARG = Sym{Any}(:ˍ₋arg3)
246-
function delay_to_function(sys::AbstractODESystem, eqs = full_equations(sys); history_arg = DEFAULT_PARAMS_ARG)
246+
function delay_to_function(
247+
sys::AbstractODESystem, eqs = full_equations(sys); history_arg = DEFAULT_PARAMS_ARG)
247248
delay_to_function(eqs,
248249
get_iv(sys),
249250
Dict{Any, Int}(operation(s) => i for (i, s) in enumerate(unknowns(sys))),
@@ -254,7 +255,8 @@ function delay_to_function(eqs::Vector, iv, sts, ps, h; history_arg = DEFAULT_PA
254255
delay_to_function.(eqs, (iv,), (sts,), (ps,), (h,); history_arg)
255256
end
256257
function delay_to_function(eq::Equation, iv, sts, ps, h; history_arg = DEFAULT_PARAMS_ARG)
257-
delay_to_function(eq.lhs, iv, sts, ps, h; history_arg) ~ delay_to_function(eq.rhs, iv, sts, ps, h; history_arg)
258+
delay_to_function(eq.lhs, iv, sts, ps, h; history_arg) ~ delay_to_function(
259+
eq.rhs, iv, sts, ps, h; history_arg)
258260
end
259261
function delay_to_function(expr, iv, sts, ps, h; history_arg = DEFAULT_PARAMS_ARG)
260262
if isdelay(expr, iv)

0 commit comments

Comments
 (0)