Skip to content

Commit

Permalink
Use the Julia wrappers everywhere in CUTEst.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Aug 17, 2024
1 parent 781e33f commit c76ab72
Show file tree
Hide file tree
Showing 6 changed files with 642 additions and 1,292 deletions.
6 changes: 6 additions & 0 deletions gen/wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ function main()
code = replace(code, "Ptr{ip_}" => "Ptr{Cint}")
code = replace(code, "Ptr{ipc_}" => "Ptr{Cint}")

# errors in cutest.h
code = replace(code, "cutest_cint_csgrp_" => "cutest_csgrp_")
code = replace(code, "cutest_cint_csjp_" => "cutest_csjp_")
code = replace(code, "cutest_cint_csgrshp_" => "cutest_csgrshp_")
code = replace(code, "cutest_cint_cchprodsp_" => "cutest_cchprodsp_")

blocks = split(code, "end\n")
nblocks = length(blocks)
code = ""
Expand Down
Loading

0 comments on commit c76ab72

Please sign in to comment.