Skip to content

Commit 5f1503b

Browse files
Merge pull request #354 from CliMA/ck/zero2
similar -> zero
2 parents 6e594dc + b27c12a commit 5f1503b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nl_solvers/newtons_method.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ function allocate_cache(alg::NewtonsMethod, x_prototype, j_prototype = nothing)
561561
krylov_method_cache = isnothing(krylov_method) ? nothing : allocate_cache(krylov_method, x_prototype),
562562
convergence_checker_cache = isnothing(convergence_checker) ? nothing :
563563
allocate_cache(convergence_checker, x_prototype),
564-
Δx = similar(x_prototype),
564+
Δx = zero(x_prototype),
565565
f = zero(x_prototype),
566566
j = isnothing(j_prototype) ? nothing : zero(j_prototype),
567567
)

0 commit comments

Comments
 (0)