Skip to content

Commit dbb97fe

Browse files
author
Jeremy E Kozdon
committed
Update generator for KSP
1 parent 9fc303d commit dbb97fe

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

gen/generator.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ printer_blacklist = [
1616
"PetscObject", "_p_PetscObject",
1717
"Mat", "_p_Mat",
1818
"Vec", "_p_Vec", "VecType",
19+
"KSP", "_p_KSP", "KSPType",
1920
#
2021
# Remove types defined in const.jl
2122
#

gen/prologue.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,6 @@ const PetscViewer = Ptr{Cvoid}
2323
const PetscObject = Ptr{Cvoid}
2424
const Vec = Ptr{Cvoid}
2525
const Mat = Ptr{Cvoid}
26+
const KSP = Ptr{Cvoid}
2627
const VecType = Cstring
28+
const KSPType = Cstring

lib/petsc_library.jl

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ const PetscViewer = Ptr{Cvoid}
2323
const PetscObject = Ptr{Cvoid}
2424
const Vec = Ptr{Cvoid}
2525
const Mat = Ptr{Cvoid}
26+
const KSP = Ptr{Cvoid}
2627
const VecType = Cstring
28+
const KSPType = Cstring
2729

2830
const __darwin_off_t = Int64
2931

@@ -51031,12 +51033,6 @@ end
5103151033
@chk ccall((:KSPInitializePackage, $petsc_library), PetscErrorCode, ())
5103251034
end
5103351035

51034-
mutable struct _p_KSP end
51035-
51036-
const KSP = Ptr{_p_KSP}
51037-
51038-
const KSPType = Ptr{Cchar}
51039-
5104051036
@for_petsc function KSPCreate(::$UnionPetscLib, arg1, arg2)
5104151037
@chk ccall(
5104251038
(:KSPCreate, $petsc_library),

0 commit comments

Comments
 (0)