Browse Source

Set compat/test and add function for Initialize

pull/38/head
Olav Møyner 2 months ago
parent
commit
3c03693d6f
  1. 1
      Project.toml
  2. 6
      lib/LibHYPRE.jl
  3. 2
      test/runtests.jl

1
Project.toml

@ -23,6 +23,7 @@ CEnum = "0.4, 0.5" @@ -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]

6
lib/LibHYPRE.jl

@ -32,8 +32,12 @@ const HYPRE_Real = Cdouble @@ -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

2
test/runtests.jl

@ -17,7 +17,7 @@ HYPRE.Init() @@ -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

Loading…
Cancel
Save