Skip to content

Commit 39bb59c

Browse files
fix: handle integer u0 in DDEProblem
1 parent d971b18 commit 39bb59c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systems/diffeqs/abstractodesystem.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,7 @@ function DiffEqBase.DDEProblem{iip}(sys::AbstractODESystem, u0map = [],
923923
h_oop, h_iip = eval_or_rgf.(h_gen; eval_expression, eval_module)
924924
h(p, t) = h_oop(p, t)
925925
h(p::MTKParameters, t) = h_oop(p..., t)
926-
u0 = h(p, tspan[1])
926+
u0 = float.(h(p, tspan[1]))
927927
if u0 !== nothing
928928
u0 = u0_constructor(u0)
929929
end

0 commit comments

Comments
 (0)