Skip to content

Commit fd6b042

Browse files
Update retcode to == for back and forwards compatability
This might be the last thing required to fully switch to enums, SciML/SciMLBase.jl#274
1 parent 79f20b4 commit fd6b042

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ModelingToolkit"
22
uuid = "961ee093-0014-501f-94e3-6117800e7a78"
33
authors = ["Yingbo Ma <[email protected]>", "Chris Rackauckas <[email protected]> and contributors"]
4-
version = "8.28.0"
4+
version = "8.28.1"
55

66
[deps]
77
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"

src/structural_transformation/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ function numerical_nlsolve(f, u0, p)
387387
prob = NonlinearProblem{false}(f, u0, p)
388388
sol = solve(prob, NewtonRaphson())
389389
rc = sol.retcode
390-
rc === :DEFAULT || nlsolve_failure(rc)
390+
rc == :DEFAULT || nlsolve_failure(rc)
391391
# TODO: robust initial guess, better debugging info, and residual check
392392
sol.u
393393
end

0 commit comments

Comments
 (0)