From dbb97feb073aecc3b028a944d372a74325abb995 Mon Sep 17 00:00:00 2001 From: Jeremy E Kozdon Date: Tue, 3 Aug 2021 09:25:19 -0700 Subject: [PATCH] Update generator for KSP --- gen/generator.toml | 1 + gen/prologue.jl | 2 ++ lib/petsc_library.jl | 8 ++------ 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/gen/generator.toml b/gen/generator.toml index 4ac1d75e..3f8f9266 100644 --- a/gen/generator.toml +++ b/gen/generator.toml @@ -16,6 +16,7 @@ printer_blacklist = [ "PetscObject", "_p_PetscObject", "Mat", "_p_Mat", "Vec", "_p_Vec", "VecType", + "KSP", "_p_KSP", "KSPType", # # Remove types defined in const.jl # diff --git a/gen/prologue.jl b/gen/prologue.jl index 2ab399aa..cb14aebb 100644 --- a/gen/prologue.jl +++ b/gen/prologue.jl @@ -23,4 +23,6 @@ const PetscViewer = Ptr{Cvoid} const PetscObject = Ptr{Cvoid} const Vec = Ptr{Cvoid} const Mat = Ptr{Cvoid} +const KSP = Ptr{Cvoid} const VecType = Cstring +const KSPType = Cstring diff --git a/lib/petsc_library.jl b/lib/petsc_library.jl index 04e03536..d4dd86a1 100644 --- a/lib/petsc_library.jl +++ b/lib/petsc_library.jl @@ -23,7 +23,9 @@ const PetscViewer = Ptr{Cvoid} const PetscObject = Ptr{Cvoid} const Vec = Ptr{Cvoid} const Mat = Ptr{Cvoid} +const KSP = Ptr{Cvoid} const VecType = Cstring +const KSPType = Cstring const __darwin_off_t = Int64 @@ -51031,12 +51033,6 @@ end @chk ccall((:KSPInitializePackage, $petsc_library), PetscErrorCode, ()) end -mutable struct _p_KSP end - -const KSP = Ptr{_p_KSP} - -const KSPType = Ptr{Cchar} - @for_petsc function KSPCreate(::$UnionPetscLib, arg1, arg2) @chk ccall( (:KSPCreate, $petsc_library),