Skip to content

Commit 2d19f54

Browse files
committed
Incorrect depwarn call
1 parent f2edda0 commit 2d19f54

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "NonlinearSolve"
22
uuid = "8913a72c-1f9b-4ce2-8d82-65094dcecaec"
33
authors = ["SciML"]
4-
version = "3.3.1"
4+
version = "3.4.0"
55

66
[deps]
77
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"

ext/NonlinearSolveSIAMFANLEquationsExt.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ function SciMLBase.__solve(prob::NonlinearProblem, alg::SIAMFANLEquationsJL, arg
3535

3636
iip = SciMLBase.isinplace(prob)
3737

38-
atol = NonlinearSolve.DEFAULT_TOLERANCE(abstol, eltype(prob.u0))
39-
rtol = NonlinearSolve.DEFAULT_TOLERANCE(reltol, eltype(prob.u0))
38+
T = eltype(prob.u0)
39+
atol = NonlinearSolve.DEFAULT_TOLERANCE(abstol, T)
40+
rtol = NonlinearSolve.DEFAULT_TOLERANCE(reltol, T)
4041

4142
if prob.u0 isa Number
4243
f = (u) -> prob.f(u, prob.p)

src/extension_algs.jl

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ function CMINPACK(; show_trace = missing, tracing = missing, method::Symbol = :a
141141
Base.depwarn("`show_trace` for CMINPACK has been deprecated and will be removed \
142142
in v4. Use the `show_trace` keyword argument via the logging API \
143143
https://docs.sciml.ai/NonlinearSolve/stable/basics/Logging/ \
144-
instead.")
144+
instead.", :CMINPACK)
145145
else
146146
show_trace = false
147147
end
@@ -150,7 +150,7 @@ function CMINPACK(; show_trace = missing, tracing = missing, method::Symbol = :a
150150
Base.depwarn("`tracing` for CMINPACK has been deprecated and will be removed \
151151
in v4. Use the `store_trace` keyword argument via the logging API \
152152
https://docs.sciml.ai/NonlinearSolve/stable/basics/Logging/ \
153-
instead.")
153+
instead.", :CMINPACK)
154154
else
155155
tracing = false
156156
end
@@ -219,7 +219,7 @@ function NLsolveJL(; method = :trust_region, autodiff = :central, store_trace =
219219
Base.depwarn("`show_trace` for NLsolveJL has been deprecated and will be removed \
220220
in v4. Use the `show_trace` keyword argument via the logging API \
221221
https://docs.sciml.ai/NonlinearSolve/stable/basics/Logging/ \
222-
instead.")
222+
instead.", :NLsolveJL)
223223
else
224224
show_trace = false
225225
end
@@ -228,7 +228,7 @@ function NLsolveJL(; method = :trust_region, autodiff = :central, store_trace =
228228
Base.depwarn("`store_trace` for NLsolveJL has been deprecated and will be removed \
229229
in v4. Use the `store_trace` keyword argument via the logging API \
230230
https://docs.sciml.ai/NonlinearSolve/stable/basics/Logging/ \
231-
instead.")
231+
instead.", :NLsolveJL)
232232
else
233233
store_trace = false
234234
end
@@ -237,7 +237,8 @@ function NLsolveJL(; method = :trust_region, autodiff = :central, store_trace =
237237
Base.depwarn("`extended_trace` for NLsolveJL has been deprecated and will be \
238238
removed in v4. Use the `trace_level = TraceAll()` keyword argument \
239239
via the logging API \
240-
https://docs.sciml.ai/NonlinearSolve/stable/basics/Logging/ instead.")
240+
https://docs.sciml.ai/NonlinearSolve/stable/basics/Logging/ instead.",
241+
:NLsolveJL)
241242
else
242243
extended_trace = false
243244
end
@@ -388,5 +389,5 @@ function SIAMFANLEquationsJL(; method = :newton, delta = 1e-3, linsolve = nothin
388389
if Base.get_extension(@__MODULE__, :NonlinearSolveSIAMFANLEquationsExt) === nothing
389390
error("SIAMFANLEquationsJL requires SIAMFANLEquations.jl to be loaded")
390391
end
391-
return SIAMFANLEquationsJL(method, show_trace, delta, linsolve)
392+
return SIAMFANLEquationsJL(method, delta, linsolve)
392393
end

0 commit comments

Comments
 (0)