Skip to content

Commit da55a95

Browse files
Merge pull request #876 from SciML/convert
Automatically convert a SteadyStateProblem to a NonlinearProblem
2 parents 5b65acd + f28552a commit da55a95

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/Downstream.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ jobs:
3737
- {user: SciML, repo: StochasticDiffEq.jl, group: AlgConvergence}
3838
- {user: SciML, repo: Sundials.jl, group: All}
3939
- {user: SciML, repo: SteadyStateDiffEq.jl, group: All}
40+
- {user: SciML, repo: DifferentialEquations.jl, group: All}
41+
- {user: SciML, repo: ModelingToolkit.jl, group: All}
4042

4143
steps:
4244
- uses: actions/checkout@v2

src/solve.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -926,6 +926,14 @@ function solve_up(prob::Union{DEProblem, NonlinearProblem}, sensealg, u0, p, arg
926926
end
927927
end
928928

929+
function solve_call(prob::SteadyStateProblem,
930+
alg::SciMLBase.AbstractNonlinearAlgorithm, args...;
931+
kwargs...)
932+
solve_call(NonlinearProblem(prob),
933+
alg, args...;
934+
kwargs...)
935+
end
936+
929937
function solve(prob::EnsembleProblem, args...; kwargs...)
930938
if isempty(args) || length(args) == 1 && typeof(args[1]) <: EnsembleAlgorithm
931939
__solve(prob, nothing, args...; kwargs...)

0 commit comments

Comments
 (0)