Skip to content

Commit

Permalink
Update generator for KSP
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy E Kozdon committed Aug 3, 2021
1 parent 9fc303d commit dbb97fe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions gen/generator.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down
2 changes: 2 additions & 0 deletions gen/prologue.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 2 additions & 6 deletions lib/petsc_library.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit dbb97fe

Please sign in to comment.