Skip to content

Commit

Permalink
initializing as zero
Browse files Browse the repository at this point in the history
  • Loading branch information
Deltadahl committed Jan 19, 2023
1 parent 6f7261a commit 46da9a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/trustRegion.jl
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ function SciMLBase.__init(prob::NonlinearProblem{uType, iip}, alg::TrustRegion,
return TrustRegionCache{iip}(f, alg, u, fu, p, uf, linsolve, J, jac_config,
1, false, maxiters, internalnorm,
ReturnCode.Default, abstol, prob, initial_trust_radius,
max_trust_radius, loss, loss, H, fu, 0, u, u_tmp, fu, true,
max_trust_radius, loss, loss, H, zero(fu), 0, zero(u), u_tmp, zero(fu), true,
loss)
end

Expand Down

0 comments on commit 46da9a5

Please sign in to comment.