Skip to content

Commit a8f4c33

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

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
@@ -249,7 +249,7 @@ function SciMLBase.__init(prob::NonlinearProblem{uType, iip}, alg::TrustRegion,
249249
else
250250
u = deepcopy(prob.u0)
251251
end
252-
u_prev = deepcopy(u)
252+
u_prev = zero(u)
253253
f = prob.f
254254
p = prob.p
255255
if iip

0 commit comments

Comments
 (0)