Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit 41545a5

Browse files
committed
Needs a safety copy
1 parent e828479 commit 41545a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nlsolve/klement.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ struct SimpleKlement <: AbstractSimpleNonlinearSolveAlgorithm end
99
function SciMLBase.__solve(prob::NonlinearProblem, alg::SimpleKlement, args...;
1010
abstol = nothing, reltol = nothing, maxiters = 1000,
1111
termination_condition = nothing, kwargs...)
12-
x = float(prob.u0)
12+
@bb x = copy(float(prob.u0))
1313
T = eltype(x)
1414
fx = _get_fx(prob, x)
1515

0 commit comments

Comments
 (0)