Skip to content

Commit 1b99ffc

Browse files
committed
🤖 Format .jl files
1 parent df07a88 commit 1b99ffc

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/allocs_model.jl

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function test_allocs_nlpmodels(nlp::AbstractNLPModel; linear_api = false, exclud
4747
end
4848
end
4949

50-
if !(hprod in exclude)&& nlp.meta.hprod_available
50+
if !(hprod in exclude) && nlp.meta.hprod_available
5151
x = get_x0(nlp)
5252
v = copy(x)
5353
Hv = similar(x)
@@ -109,7 +109,10 @@ function test_allocs_nlpmodels(nlp::AbstractNLPModel; linear_api = false, exclud
109109
nlp_allocations[:jtprod!] = @allocated jtprod!(nlp, x, v, Jtv)
110110
end
111111

112-
if get_ncon(nlp) > 0 && !(jac_op in exclude) && nlp.meta.jprod_available && nlp.meta.jtprod_available
112+
if get_ncon(nlp) > 0 &&
113+
!(jac_op in exclude) &&
114+
nlp.meta.jprod_available &&
115+
nlp.meta.jtprod_available
113116
x = get_x0(nlp)
114117
Jtv = similar(x)
115118
Jv = Vector{eltype(x)}(undef, get_ncon(nlp))
@@ -296,7 +299,9 @@ function test_allocs_nlsmodels(nls::AbstractNLSModel; exclude = [])
296299
nls_allocations[:jtprod_residual!] = @allocated jtprod_residual!(nls, x, w, Jtv)
297300
end
298301

299-
if !(jac_op_residual in exclude) && nls_meta(nls).jprod_residual_available && nls_meta(nls).jtprod_residual_available
302+
if !(jac_op_residual in exclude) &&
303+
nls_meta(nls).jprod_residual_available &&
304+
nls_meta(nls).jtprod_residual_available
300305
x = get_x0(nls)
301306
Jtv = similar(x)
302307
Jv = Vector{eltype(x)}(undef, get_nequ(nls))

0 commit comments

Comments
 (0)