Skip to content

Commit 3d11fc4

Browse files
committed
Fix undefined variable ξ in @setup block
Use parameter x instead of undefined ξ in NonlinearProblem fallback
1 parent ce5a00d commit 3d11fc4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/src/tutorial-goddard.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ function fsolve(f, j, x; kwargs...)
277277
println(e)
278278
println("hybrj not supported. Replaced by NonlinearSolve even if it is not visible on the doc.")
279279
nle! = (s, ξ, λ) -> f(s, ξ)
280-
prob = NonlinearProblem(nle!, ξ)
280+
prob = NonlinearProblem(nle!, x)
281281
sol = solve(prob; abstol=1e-8, reltol=1e-8, show_trace=Val(true))
282282
return MYSOL(sol.u)
283283
end

0 commit comments

Comments
 (0)