Skip to content

Commit 44f71a8

Browse files
fix: fix toterm handling in DiscreteProblem
1 parent 190fa10 commit 44f71a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/problems/discreteproblem.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ end
4343
check_compatibility && check_compatible_system(DiscreteProblem, sys)
4444

4545
dvs = unknowns(sys)
46-
u0map = to_varmap(op, dvs)
47-
add_toterms!(u0map; replace = true)
46+
op = to_varmap(op, dvs)
47+
add_toterms!(op; replace = true)
4848
f, u0, p = process_SciMLProblem(DiscreteFunction{iip, spec}, sys, op;
4949
t = tspan !== nothing ? tspan[1] : tspan, check_compatibility, expression,
50-
build_initializeprob = false, kwargs...)
50+
kwargs...)
5151

5252
if expression == Val{true}
5353
u0 = :(f($u0, p, tspan[1]))

0 commit comments

Comments
 (0)