Browse Source

Add backwards compatbile Init call

pull/38/head
Olav Møyner 2 months ago
parent
commit
b3c2ff27b8
  1. 5
      src/LibHYPRE.jl

5
src/LibHYPRE.jl

@ -5,6 +5,11 @@ using Libdl: dlsym
# Clang.jl auto-generated bindings # Clang.jl auto-generated bindings
include("../lib/LibHYPRE.jl") include("../lib/LibHYPRE.jl")
# Backwards compatibility for older versions of HYPRE.jl
function HYPRE_Init()
return HYPRE_Initialize()
end
# Add manual methods for some ::Function signatures where the library wants function # Add manual methods for some ::Function signatures where the library wants function
# pointers. Instead of creating function pointers to the Julia wrappers we can just look # pointers. Instead of creating function pointers to the Julia wrappers we can just look
# up the pointer in the library and pass that. # up the pointer in the library and pass that.

Loading…
Cancel
Save