Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Aug 17, 2024
1 parent 0f32d6a commit 6cffd87
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 15 deletions.
22 changes: 11 additions & 11 deletions src/core_interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ linear, e_order, l_order, v_order)
- y: [OUT] Vector{Cdouble}
- c_l: [OUT] Vector{Cdouble}
- c_u: [OUT] Vector{Cdouble}
- equatn: [OUT] Vector{Cint}
- linear: [OUT] Vector{Cint}
- equatn: [OUT] Vector{Bool}
- linear: [OUT] Vector{Bool}
- e_order: [IN] Vector{Cint}
- l_order: [IN] Vector{Cint}
- v_order: [IN] Vector{Cint}
Expand All @@ -166,13 +166,13 @@ function csetup(
y::StrideOneVector{Cdouble},
c_l::StrideOneVector{Cdouble},
c_u::StrideOneVector{Cdouble},
equatn::StrideOneVector{Cint},
linear::StrideOneVector{Cint},
equatn::StrideOneVector{Bool},
linear::StrideOneVector{Bool},
e_order::StrideOneVector{Cint},
l_order::StrideOneVector{Cint},
v_order::StrideOneVector{Cint},
)
cutest_csetup_(
cutest_cint_csetup_(

Check warning on line 175 in src/core_interface.jl

View check run for this annotation

Codecov / codecov/patch

src/core_interface.jl#L175

Added line #L175 was not covered by tests
status,
input,
out,
Expand Down Expand Up @@ -1083,7 +1083,7 @@ lhe_val, he_val, byrows)
- he_row: [OUT] Vector{Cint}
- lhe_val: [IN] Vector{Cint}
- he_val: [OUT] Vector{Cdouble}
- byrows: [IN] Vector{Cint}
- byrows: [IN] Vector{Bool}
"""
function ueh(
status::StrideOneVector{Cint},
Expand All @@ -1097,9 +1097,9 @@ function ueh(
he_row::StrideOneVector{Cint},
lhe_val::StrideOneVector{Cint},
he_val::StrideOneVector{Cdouble},
byrows::StrideOneVector{Cint},
byrows::StrideOneVector{Bool},
)
cutest_ueh_(
cutest_cint_ueh_(

Check warning on line 1102 in src/core_interface.jl

View check run for this annotation

Codecov / codecov/patch

src/core_interface.jl#L1102

Added line #L1102 was not covered by tests
status,
n,
x,
Expand Down Expand Up @@ -1482,17 +1482,17 @@ Usage:
- x: [IN] Vector{Cdouble}
- f: [OUT] Vector{Cdouble}
- g: [OUT] Vector{Cdouble}
- grad: [IN] Vector{Cint}
- grad: [IN] Vector{Bool}
"""
function cofg(
status::StrideOneVector{Cint},
n::StrideOneVector{Cint},
x::StrideOneVector{Cdouble},
f::StrideOneVector{Cdouble},
g::StrideOneVector{Cdouble},
grad::StrideOneVector{Cint},
grad::StrideOneVector{Bool},
)
cutest_cofg_(
cutest_cint_cofg_(

Check warning on line 1495 in src/core_interface.jl

View check run for this annotation

Codecov / codecov/patch

src/core_interface.jl#L1495

Added line #L1495 was not covered by tests
status,
n,
x,
Expand Down
1 change: 1 addition & 0 deletions src/julia_interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ function cons_coord!(
nvar = Ref{Cint}(nlp.meta.nvar)
ncon = Ref{Cint}(nlp.meta.ncon)
status = Ref{Cint}(0)
nnzj = Ref{Cint}(nlp.meta.nnzj)
jsize = Ref{Cint}(nlp.meta.nnzj)
get_j = Ref{Cint}(1)

Check warning on line 169 in src/julia_interface.jl

View check run for this annotation

Codecov / codecov/patch

src/julia_interface.jl#L161-L169

Added lines #L161 - L169 were not covered by tests

Expand Down
4 changes: 2 additions & 2 deletions src/model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ function CUTEstModel(
v = Vector{Float64}(undef, ncon[])
cl = Vector{Float64}(undef, ncon[])
cu = Vector{Float64}(undef, ncon[])
equatn = Vector{Int32}(undef, ncon[])
linear = Vector{Int32}(undef, ncon[])
equatn = Vector{Bool}(undef, ncon[])
linear = Vector{Bool}(undef, ncon[])

Check warning on line 112 in src/model.jl

View check run for this annotation

Codecov / codecov/patch

src/model.jl#L111-L112

Added lines #L111 - L112 were not covered by tests

if ncon[] > 0
e_order = efirst ? Ref{Cint}(1) : Ref{Cint}(0)
Expand Down
4 changes: 2 additions & 2 deletions test/test_core.jl
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ function test_coreinterface(nlp::CUTEstModel, comp_nlp::AbstractNLPModel; test_v
nnzg = view(Cint[0], 1:1)
nnzj = view(Cint[0], 1:1)
nnzh = view(Cint[0], 1:1)
True = view(Cint[true], 1:1)
False = view(Cint[false], 1:1)
True = view(Bool[true], 1:1)
False = view(Bool[false], 1:1)
Jx = Array{Cdouble}(undef, ncon[1], nvar[1])
Jtx = Array{Cdouble}(undef, nvar[1], ncon[1])
Jval = @view(Array{Cdouble}(undef, nlp.meta.nnzj + nlp.meta.nvar + 1)[2:end])
Expand Down

0 comments on commit 6cffd87

Please sign in to comment.