Skip to content

Commit 098d3de

Browse files
Merge pull request #98 from SebastianM-C/fix-alias-u0-deprecation
Fix alias u0 deprecation
2 parents aaf7a62 + 79523f9 commit 098d3de

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
1515
ConcreteStructs = "0.2"
1616
DiffEqBase = "6.140"
1717
DiffEqCallbacks = "3, 4"
18-
NonlinearSolveBase = "2"
18+
NonlinearSolveBase = "2.2"
1919
Reexport = "1.0"
2020
SciMLBase = "2"
2121
julia = "1.10"

src/solve.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ end
1616
function SciMLBase.__solve(prob::SciMLBase.AbstractSteadyStateProblem, alg::DynamicSS,
1717
args...; abstol = 1e-8, reltol = 1e-6, odesolve_kwargs = (;),
1818
save_idxs = nothing, termination_condition = NonlinearSolveBase.NormTerminationMode(infnorm),
19-
kwargs...)
19+
alias = SciMLBase.NonlinearAliasSpecifier(), kwargs...)
2020
tspan = __get_tspan(prob.u0, alg)
2121

2222
f = if prob isa SteadyStateProblem
@@ -54,7 +54,9 @@ function SciMLBase.__solve(prob::SciMLBase.AbstractSteadyStateProblem, alg::Dyna
5454
# Construct and solve the ODEProblem
5555
odeprob = ODEProblem{isinplace(prob), true}(f, prob.u0, tspan, prob.p)
5656
odesol = solve(odeprob, alg.alg, args...; abstol, reltol, kwargs...,
57-
odesolve_kwargs..., callback, save_end = true)
57+
odesolve_kwargs..., callback, save_end = true,
58+
alias = SciMLBase.ODEAliasSpecifier(; alias_p = alias.alias_p,
59+
alias_f = alias.alias_f, alias_u0 = alias.alias_u0))
5860

5961
resid, u, retcode = __get_result_from_sol(termination_condition, tc_cache, odesol)
6062

test/autodiff.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ eqs = [
3434
D(y8) ~ (-k2 * y6 * y8 + k6 * y7)
3535
]
3636

37-
@mtkbuild model = ODESystem(eqs, t)
37+
@mtkcompile model = System(eqs, t)
3838

3939
struct Tag end
4040
T = typeof(ForwardDiff.Tag(Tag(), Float64))

0 commit comments

Comments
 (0)