Skip to content

Commit

Permalink
Bring back bb
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaibhavdixit02 committed Jan 12, 2024
1 parent 8cb560b commit 158121e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/linesearch.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@ end
end

function (alg::__LiFukushimaLineSearch)(prob, fu, u)
@bb u_cache = similar(u)
@bb fu_cache = similar(fu)
T = promote_type(eltype(fu), eltype(u))

Check warning on line 30 in src/linesearch.jl

View check run for this annotation

Codecov / codecov/patch

src/linesearch.jl#L27-L30

Added lines #L27 - L30 were not covered by tests

ϕ = @closure (u, δu, α) -> begin
u_cache = @. u + α * δu
return NONLINEARSOLVE_DEFAULT_NORM(prob.f(u_cache, prob.p))
return NONLINEARSOLVE_DEFAULT_NORM(__eval_f(prob, fu_cache, u_cache))

Check warning on line 34 in src/linesearch.jl

View check run for this annotation

Codecov / codecov/patch

src/linesearch.jl#L32-L34

Added lines #L32 - L34 were not covered by tests
end

return __LiFukushimaLineSearchCache(ϕ, T(alg.lambda_0), T(alg.beta), T(alg.sigma_1),

Check warning on line 37 in src/linesearch.jl

View check run for this annotation

Codecov / codecov/patch

src/linesearch.jl#L37

Added line #L37 was not covered by tests
Expand Down

0 comments on commit 158121e

Please sign in to comment.