Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Jul 5, 2024
1 parent 8933782 commit a3ea11c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/systems/nonlinear/modelingtoolkitize.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ function modelingtoolkitize(

if DiffEqBase.isinplace(prob)
if prob isa NonlinearLeastSquaresProblem
rhs = ArrayInterface.restructure(prob.f.resid_prototype, similar(prob.f.resid_prototype, Num))
rhs = ArrayInterface.restructure(
prob.f.resid_prototype, similar(prob.f.resid_prototype, Num))
else
rhs = ArrayInterface.restructure(prob.u0, similar(vars, Num))
end
Expand Down

0 comments on commit a3ea11c

Please sign in to comment.