Skip to content

Commit

Permalink
fix: forward reinit_cache to SciMLBase.reinit
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Oct 3, 2024
1 parent 8e4a5b2 commit a25aec4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/globalization/line_search.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,7 @@ Base.@deprecate LiFukushimaLineSearch(; nan_max_iter::Int = 5, kwargs...) LineSe
function callback_into_cache!(topcache, cache::AbstractLineSearchCache, args...)
LineSearch.callback_into_cache!(cache, get_fu(topcache))
end

function reinit_cache!(cache::AbstractLineSearchCache, args...; kwargs...)
return SciMLBase.reinit!(cache, args...; kwargs...)
end
2 changes: 1 addition & 1 deletion src/internal/termination.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function update_from_termination_cache!(tc_cache, cache, u = get_u(cache))
end

function update_from_termination_cache!(
_, cache, ::AbstractNonlinearTerminationMode, u = get_u(cache))
tc_cache, cache, ::AbstractNonlinearTerminationMode, u = get_u(cache))
evaluate_f!(cache, u, cache.p)
end

Expand Down

0 comments on commit a25aec4

Please sign in to comment.