From b3c2ff27b837728fc39ae9e069b91e027d63bfd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olav=20M=C3=B8yner?= Date: Mon, 20 Oct 2025 15:33:51 +0200 Subject: [PATCH] Add backwards compatbile Init call --- src/LibHYPRE.jl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/LibHYPRE.jl b/src/LibHYPRE.jl index e5ad7bf..106a3ea 100644 --- a/src/LibHYPRE.jl +++ b/src/LibHYPRE.jl @@ -5,6 +5,11 @@ using Libdl: dlsym # Clang.jl auto-generated bindings 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 # pointers. Instead of creating function pointers to the Julia wrappers we can just look # up the pointer in the library and pass that.