diff --git a/Project.toml b/Project.toml index 09c9c05..82cd846 100644 --- a/Project.toml +++ b/Project.toml @@ -23,6 +23,7 @@ CEnum = "0.4, 0.5" MPI = "0.19, 0.20" PartitionedArrays = "0.5" SparseMatricesCSR = "0.6" +HYPRE_jll = "3" julia = "1.10" [extras] diff --git a/lib/LibHYPRE.jl b/lib/LibHYPRE.jl index df5cba5..4772d49 100644 --- a/lib/LibHYPRE.jl +++ b/lib/LibHYPRE.jl @@ -32,8 +32,12 @@ const HYPRE_Real = Cdouble const HYPRE_Complex = HYPRE_Real -# no prototype is found for this function at HYPRE_utilities.h:116:11, please use with caution function HYPRE_Init() + return HYPRE_Initialize() +end + +# no prototype is found for this function at HYPRE_utilities.h:116:11, please use with caution +function HYPRE_Initialize() return @ccall libHYPRE.HYPRE_Initialize()::HYPRE_Int end diff --git a/test/runtests.jl b/test/runtests.jl index 8bddc4d..726d186 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -17,7 +17,7 @@ HYPRE.Init() @testset "LibHYPRE" begin @test LibHYPRE.VERSION > VERSION # :) - @test LibHYPRE.VERSION.major in (2, 3) + @test LibHYPRE.VERSION.major == 3 end @testset "HYPREMatrix" begin