Skip to content

Commit 308944e

Browse files
Update src/trustRegion.jl
1 parent 88b93b4 commit 308944e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/trustRegion.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ function SciMLBase.__init(prob::NonlinearProblem{uType, iip}, alg::TrustRegion,
258258
else
259259
fu = f(u, p)
260260
end
261-
fu_prev = deepcopy(fu)
261+
fu_prev = zero(fu)
262262

263263
loss = get_loss(fu)
264264
uf, linsolve, J, u_tmp, jac_config = jacobian_caches(alg, f, u, p, Val(iip))

0 commit comments

Comments
 (0)