From f8c78db790dc86b26254cbb0be0696f9779a5757 Mon Sep 17 00:00:00 2001 From: Jeremy E Kozdon Date: Fri, 16 Jul 2021 13:43:48 -0700 Subject: [PATCH] Move Vec --- gen/generator.toml | 1 + gen/prologue.jl | 1 + lib/petsc_library.jl | 5 +---- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/gen/generator.toml b/gen/generator.toml index 5a14bd1b..5427cf43 100644 --- a/gen/generator.toml +++ b/gen/generator.toml @@ -13,6 +13,7 @@ printer_blacklist = [ # "PetscOptions", "_n_PetscOptions", "PetscViewer", "_p_PetscViewer", + "Vec", "_p_Vec", # # Remove types defined in const.jl # diff --git a/gen/prologue.jl b/gen/prologue.jl index c773f67e..43678086 100644 --- a/gen/prologue.jl +++ b/gen/prologue.jl @@ -20,3 +20,4 @@ const MPI_REPLACE = MPI.MPI_REPLACE # We know these will be Cvoid, so just set them to be that const PetscOptions = Ptr{Cvoid} const PetscViewer = Ptr{Cvoid} +const Vec = Ptr{Cvoid} diff --git a/lib/petsc_library.jl b/lib/petsc_library.jl index b3a00123..56ba6702 100644 --- a/lib/petsc_library.jl +++ b/lib/petsc_library.jl @@ -20,6 +20,7 @@ const MPI_REPLACE = MPI.MPI_REPLACE # We know these will be Cvoid, so just set them to be that const PetscOptions = Ptr{Cvoid} const PetscViewer = Ptr{Cvoid} +const Vec = Ptr{Cvoid} const __darwin_off_t = Int64 @@ -12782,10 +12783,6 @@ end ) end -mutable struct _p_Vec end - -const Vec = Ptr{_p_Vec} - @enum ScatterMode::UInt32 begin SCATTER_FORWARD = 0 SCATTER_REVERSE = 1