Skip to content

Commit edc21fb

Browse files
committed
identity f to DiscreteFunction
1 parent ad2b321 commit edc21fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/problem.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ end
1212

1313
### DiscreteProblem, passing through syms
1414
function DiffEqBase.DiscreteProblem(rn::DiffEqBase.AbstractReactionNetwork, u0, tspan::Tuple, p=nothing; kwargs...)
15-
f = DiffEqBase.DISCRETE_INPLACE_DEFAULT
15+
f = (du,u,p,t) -> du.=u # identity function to make syms works
1616
df = DiscreteFunction(f,syms=rn.syms)
1717
DiscreteProblem(df, u0, tspan, p; kwargs...)
1818
end

0 commit comments

Comments
 (0)