Skip to content

Commit

Permalink
Add correct dispatches for NonlinearLeastSquaresProblem
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Sep 21, 2023
1 parent 456cb3d commit 6f482ff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ PrecompileTools = "1"
RecursiveArrayTools = "2"
Reexport = "1.0"
Requires = "1.0"
SciMLBase = "1.93.3"
SciMLBase = "2"
SciMLOperators = "0.2, 0.3"
Setfield = "0.8, 1"
Static = "0.7, 0.8"
Expand Down
6 changes: 6 additions & 0 deletions src/solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1089,6 +1089,12 @@ function get_concrete_problem(prob::NonlinearProblem, isadapt; kwargs...)
remake(prob; u0 = u0)
end

function get_concrete_problem(prob::NonlinearLeastSquaresProblem, isadapt; kwargs...)
u0 = get_concrete_u0(prob, isadapt, nothing, kwargs)
u0 = promote_u0(u0, prob.p, nothing)
remake(prob; u0 = u0)
end

function get_concrete_problem(prob::AbstractEnsembleProblem, isadapt; kwargs...)
prob
end
Expand Down

0 comments on commit 6f482ff

Please sign in to comment.