Skip to content

Commit d2e7f97

Browse files
fixup! feat: add proper remake for DDEProblem
1 parent c967f67 commit d2e7f97

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/remake.jl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,11 @@ function remake(func::Union{SDEFunction, SDDEFunction};
408408
return T(f, g; mass_matrix, analytic, sys, kwargs...)
409409
end
410410

411-
function remake(prob::DDEProblem; f = missing, h = missing, u0 = missing, tspan = missing, p = missing, constant_lags = missing, dependent_lags = missing, order_discontinuity_t0 = missing, neutral = missing, kwargs = missing, interpret_symbolicmap = true, use_defaults = false, build_initializeprob = true, _kwargs...)
411+
function remake(prob::DDEProblem; f = missing, h = missing, u0 = missing,
412+
tspan = missing, p = missing, constant_lags = missing,
413+
dependent_lags = missing, order_discontinuity_t0 = missing,
414+
neutral = missing, kwargs = missing, interpret_symbolicmap = true,
415+
use_defaults = false, build_initializeprob = true, _kwargs...)
412416
if tspan === missing
413417
tspan = prob.tspan
414418
end
@@ -450,7 +454,8 @@ function remake(prob::DDEProblem; f = missing, h = missing, u0 = missing, tspan
450454
prob.kwargs...,
451455
_kwargs...)
452456
else
453-
DDEProblem{iip}(f, newu0, h, tspan, newp; constant_lags, dependent_lags, order_discontinuity_t0, neutral, kwargs...)
457+
DDEProblem{iip}(f, newu0, h, tspan, newp; constant_lags, dependent_lags,
458+
order_discontinuity_t0, neutral, kwargs...)
454459
end
455460
end
456461

0 commit comments

Comments
 (0)