Skip to content

Commit 8e872e0

Browse files
committed
Try fixing linesearch
1 parent e6a72d3 commit 8e872e0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/linesearch.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,7 @@ function LineSearchesJLCache(ls::LineSearch, f::F, u, p, fu1, IIP::Val{iip}) whe
122122
end
123123

124124
function g!(u, fu)
125-
# FIXME: Upstream patch to allow non-square Jacobians
126-
op = VecJac((args...) -> f(args..., p), u; autodiff)
125+
op = VecJac(f, u, p; autodiff)
127126
if iip
128127
mul!(g₀, op, fu)
129128
return g₀

0 commit comments

Comments
 (0)