Skip to content

Commit 214fb0f

Browse files
committed
Dispatch didnot propagate problem kwargs
1 parent 3dfa6a2 commit 214fb0f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/SimpleNonlinearSolve/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "SimpleNonlinearSolve"
22
uuid = "727e6d20-b764-4bd8-a329-72de5adea6c7"
33
authors = ["SciML"]
4-
version = "1.4.1"
4+
version = "1.4.2"
55

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

lib/SimpleNonlinearSolve/src/SimpleNonlinearSolve.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ include("ad.jl")
5353
# Set the default bracketing method to ITP
5454
SciMLBase.solve(prob::IntervalNonlinearProblem; kwargs...) = solve(prob, ITP(); kwargs...)
5555
function SciMLBase.solve(prob::IntervalNonlinearProblem, alg::Nothing, args...; kwargs...)
56-
return solve(prob, ITP(), args...; kwargs...)
56+
return solve(prob, ITP(), args...; prob.kwargs..., kwargs...)
5757
end
5858

5959
# By Pass the highlevel checks for NonlinearProblem for Simple Algorithms
@@ -67,7 +67,7 @@ function SciMLBase.solve(
6767
new_p = p !== nothing ? p : prob.p
6868
return __internal_solve_up(
6969
prob, sensealg, new_u0, u0 === nothing, new_p, p === nothing,
70-
alg, args...; kwargs...)
70+
alg, args...; prob.kwargs..., kwargs...)
7171
end
7272

7373
function __internal_solve_up(_prob::NonlinearProblem, sensealg, u0, u0_changed, p,

0 commit comments

Comments
 (0)