Skip to content

Commit 9335a5b

Browse files
fix: fix modelingtoolkitize(::NonlinearProblem)
1 parent 6dc3586 commit 9335a5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systems/nonlinear/modelingtoolkitize.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function modelingtoolkitize(
4545
eqs = vcat([0.0 ~ rhs[i] for i in 1:length(prob.f.resid_prototype)]...)
4646
else
4747
rhs = ArrayInterface.restructure(prob.u0, similar(vars, Num))
48-
prob.f(rhs, vars, p isa MTKParameters ? (params,) : params)
48+
prob.f(rhs, vars, params)
4949
eqs = vcat([0.0 ~ rhs[i] for i in 1:length(rhs)]...)
5050
end
5151

0 commit comments

Comments
 (0)