Skip to content

Commit 67b2dab

Browse files
Merge pull request #1884 from SciML/retcode
Update retcode to `==` for back and forwards compatability
2 parents 79f20b4 + fd6b042 commit 67b2dab

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)