Skip to content

Commit

Permalink
fix: call solve instead of __solve
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Sep 2, 2024
1 parent fc8bd7d commit e6f8392
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "SteadyStateDiffEq"
uuid = "9672c7b4-1e72-59bd-8a11-6ac3964bc41f"
version = "2.3.1"
version = "2.3.2"

[deps]
ConcreteStructs = "2569d6c7-a4a2-43d3-a901-331e8e4be471"
Expand Down
4 changes: 2 additions & 2 deletions src/solve.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function SciMLBase.__solve(prob::SciMLBase.AbstractSteadyStateProblem, alg::SSRootfind,
args...; kwargs...)
nlprob = NonlinearProblem(prob)
nlsol = SciMLBase.__solve(nlprob, alg.alg, args...; kwargs...)
nlsol = solve(nlprob, alg.alg, args...; kwargs...)
return SciMLBase.build_solution(prob, SSRootfind(nlsol.alg), nlsol.u, nlsol.resid;
nlsol.retcode, nlsol.stats, nlsol.left, nlsol.right, original = nlsol)
end
Expand Down Expand Up @@ -53,7 +53,7 @@ function SciMLBase.__solve(prob::SciMLBase.AbstractSteadyStateProblem, alg::Dyna

# Construct and solve the ODEProblem
odeprob = ODEProblem{isinplace(prob)}(f, prob.u0, tspan, prob.p)
odesol = SciMLBase.__solve(odeprob, alg.alg, args...; abstol, reltol, kwargs...,
odesol = solve(odeprob, alg.alg, args...; abstol, reltol, kwargs...,
odesolve_kwargs..., callback, save_end = true)

resid, u, retcode = __get_result_from_sol(termination_condition, tc_cache, odesol)
Expand Down

0 comments on commit e6f8392

Please sign in to comment.