Skip to content

Commit c7b1df9

Browse files
Merge pull request #23 from ChrisRackauckas/fix-formatting
Apply JuliaFormatter to fix code formatting
2 parents 0ce15d4 + ade64e2 commit c7b1df9

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

src/backtracking.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,16 @@ function CommonSolve.init(
6464
@bb u_cache = similar(u)
6565
@bb fu_cache = similar(fu)
6666

67-
ϕ = @closure (f, p, u, du, α, u_cache, fu_cache) -> begin
67+
ϕ = @closure (f, p, u, du, α, u_cache,
68+
fu_cache) -> begin
6869
@bb @. u_cache = u + α * du
6970
fu_cache = evaluate_f!!(f, fu_cache, u_cache, p)
7071
add_nf!(stats)
7172
return @fastmath norm(fu_cache)^2 / 2
7273
end
7374

74-
ϕdϕ = @closure (f, p, u, du, α, u_cache, fu_cache, deriv_op) -> begin
75+
ϕdϕ = @closure (f, p, u, du, α, u_cache, fu_cache,
76+
deriv_op) -> begin
7577
@bb @. u_cache = u + α * du
7678
fu_cache = evaluate_f!!(f, fu_cache, u_cache, p)
7779
add_nf!(stats)

src/li_fukushima.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ function generic_lifukushima_init(
8080
@bb fu_cache = similar(fu)
8181
T = promote_type(eltype(fu), eltype(u))
8282

83-
ϕ = @closure (f, p, u, du, α, u_cache, fu_cache) -> begin
83+
ϕ = @closure (f, p, u, du, α, u_cache,
84+
fu_cache) -> begin
8485
@bb @. u_cache = u + α * du
8586
fu_cache = evaluate_f!!(f, fu_cache, u_cache, p)
8687
add_nf!(stats)

src/line_searches_ext.jl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,21 +67,24 @@ function CommonSolve.init(
6767
@bb u_cache = similar(u)
6868
@bb fu_cache = similar(fu)
6969

70-
ϕ = @closure (f, p, u, du, α, u_cache, fu_cache) -> begin
70+
ϕ = @closure (f, p, u, du, α, u_cache,
71+
fu_cache) -> begin
7172
@bb @. u_cache = u + α * du
7273
fu_cache = evaluate_f!!(f, fu_cache, u_cache, p)
7374
add_nf!(stats)
7475
return @fastmath norm(fu_cache)^2 / 2
7576
end
7677

77-
= @closure (f, p, u, du, α, u_cache, fu_cache, deriv_op) -> begin
78+
= @closure (f, p, u, du, α, u_cache, fu_cache,
79+
deriv_op) -> begin
7880
@bb @. u_cache = u + α * du
7981
fu_cache = evaluate_f!!(f, fu_cache, u_cache, p)
8082
add_nf!(stats)
8183
return deriv_op(du, u_cache, fu_cache, p)
8284
end
8385

84-
ϕdϕ = @closure (f, p, u, du, α, u_cache, fu_cache, deriv_op) -> begin
86+
ϕdϕ = @closure (f, p, u, du, α, u_cache, fu_cache,
87+
deriv_op) -> begin
8588
@bb @. u_cache = u + α * du
8689
fu_cache = evaluate_f!!(f, fu_cache, u_cache, p)
8790
add_nf!(stats)

src/robust_non_monotone.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ function CommonSolve.init(
7171
@bb fu_cache = similar(fu)
7272
T = promote_type(eltype(fu), eltype(u))
7373

74-
ϕ = @closure (f, p, u, du, α, u_cache, fu_cache) -> begin
74+
ϕ = @closure (f, p, u, du, α, u_cache,
75+
fu_cache) -> begin
7576
@bb @. u_cache = u + α * du
7677
fu_cache = evaluate_f!!(f, fu_cache, u_cache, p)
7778
add_nf!(stats)

0 commit comments

Comments
 (0)