Skip to content

Commit

Permalink
Use the Julia wrappers in CUTEst.jl -- Part III
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Aug 17, 2024
1 parent 31d328c commit ed2af39
Show file tree
Hide file tree
Showing 6 changed files with 162 additions and 156 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 ed2af39

Please sign in to comment.