From 038ff1e735d4b0a6e74b5520fce410502dbc4d88 Mon Sep 17 00:00:00 2001 From: Harsh Singh Date: Fri, 18 Sep 2026 02:50:04 +0530 Subject: [PATCH] Zero the PetscBool output refs so 3.25's one-byte write is read correctly --- src/LibPETSc_startup.jl | 2 +- src/autowrapped/AO_wrappers.jl | 4 +- src/autowrapped/DM_wrappers.jl | 134 +++++++++--------- src/autowrapped/DMaddons_wrappers.jl | 26 ++-- src/autowrapped/IS_wrappers.jl | 16 +-- src/autowrapped/KSP_wrappers.jl | 28 ++-- src/autowrapped/Mat_wrappers.jl | 96 ++++++------- src/autowrapped/Mataddons_wrappers.jl | 6 +- src/autowrapped/PC_wrappers.jl | 62 ++++---- src/autowrapped/PetscDLLibrary_wrappers.jl | 2 +- src/autowrapped/PetscDS_wrappers.jl | 18 +-- src/autowrapped/PetscDevice_wrappers.jl | 2 +- src/autowrapped/PetscDraw_wrappers.jl | 2 +- src/autowrapped/PetscDualSpace_wrappers.jl | 20 +-- src/autowrapped/PetscFE_wrappers.jl | 12 +- src/autowrapped/PetscFV_wrappers.jl | 2 +- src/autowrapped/PetscIntStack_wrappers.jl | 2 +- src/autowrapped/PetscLayout_wrappers.jl | 2 +- src/autowrapped/PetscLog_wrappers.jl | 6 +- src/autowrapped/PetscObject_wrappers.jl | 10 +- src/autowrapped/PetscOmpCtrl_wrappers.jl | 2 +- .../PetscOptions_addons_wrappers.jl | 2 +- src/autowrapped/PetscOptions_wrappers.jl | 54 +++---- src/autowrapped/PetscPartitioner_wrappers.jl | 2 +- src/autowrapped/PetscSection_wrappers.jl | 10 +- src/autowrapped/PetscSpace_wrappers.jl | 8 +- src/autowrapped/PetscViewer_wrappers.jl | 44 +++--- src/autowrapped/SNESLineSearch_wrappers.jl | 8 +- src/autowrapped/SNES_wrappers.jl | 36 ++--- src/autowrapped/Sys_wrappers.jl | 118 +++++++-------- src/autowrapped/TS_wrappers.jl | 30 ++-- src/autowrapped/TSaddons_wrappers.jl | 8 +- src/autowrapped/Tao_addons_wrappers.jl | 2 +- src/autowrapped/Tao_wrappers.jl | 8 +- src/autowrapped/VecTagger_wrappers.jl | 6 +- src/autowrapped/Vec_wrappers.jl | 10 +- src/autowrapped/Vecs_wrappers.jl | 2 +- src/deprecated/dm_wrapped.jl | 46 +++--- src/deprecated/dmstag_wrapped.jl | 12 +- src/deprecated/ksp_wrapped.jl | 22 +-- src/deprecated/mat.jl | 6 +- src/deprecated/options.jl | 2 +- src/startup.jl | 2 +- wrapping/generatejuliabindings.jl | 6 +- 44 files changed, 451 insertions(+), 447 deletions(-) diff --git a/src/LibPETSc_startup.jl b/src/LibPETSc_startup.jl index 42dc60385..29230a7f3 100644 --- a/src/LibPETSc_startup.jl +++ b/src/LibPETSc_startup.jl @@ -60,7 +60,7 @@ const petsc_library_file = function DataTypeFromString(libhdl::Ptr{Cvoid}, name::AbstractString) PetscDataTypeFromString_ptr = dlsym(libhdl, :PetscDataTypeFromString) dtype_ref = Ref{PetscDataType}() - found_ref = Ref{PetscBool}() + found_ref = Ref{PetscBool}(PETSC_FALSE) @chk ccall( PetscDataTypeFromString_ptr, PetscErrorCode, diff --git a/src/autowrapped/AO_wrappers.jl b/src/autowrapped/AO_wrappers.jl index 26127536d..fce856a2b 100644 --- a/src/autowrapped/AO_wrappers.jl +++ b/src/autowrapped/AO_wrappers.jl @@ -712,7 +712,7 @@ $(_doc_external("Vec/AOMappingHasApplicationIndex")) function AOMappingHasApplicationIndex(petsclib::PetscLibType, ao::AO, idex::PetscInt) end @for_petsc function AOMappingHasApplicationIndex(petsclib::$UnionPetscLib, ao::AO, idex::$PetscInt ) - hasIndex_ = Ref{PetscBool}() + hasIndex_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:AOMappingHasApplicationIndex, $petsc_library), @@ -749,7 +749,7 @@ $(_doc_external("Vec/AOMappingHasPetscIndex")) function AOMappingHasPetscIndex(petsclib::PetscLibType, ao::AO, idex::PetscInt) end @for_petsc function AOMappingHasPetscIndex(petsclib::$UnionPetscLib, ao::AO, idex::$PetscInt ) - hasIndex_ = Ref{PetscBool}() + hasIndex_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:AOMappingHasPetscIndex, $petsc_library), diff --git a/src/autowrapped/DM_wrappers.jl b/src/autowrapped/DM_wrappers.jl index 38ecd267f..224fc64a5 100644 --- a/src/autowrapped/DM_wrappers.jl +++ b/src/autowrapped/DM_wrappers.jl @@ -1870,7 +1870,7 @@ $(_doc_external("Snes/DMSNESCheckJacobian")) function DMSNESCheckJacobian(petsclib::PetscLibType, snes::PetscSNES, dm::PetscDM, u::PetscVec, tol::PetscReal) end @for_petsc function DMSNESCheckJacobian(petsclib::$UnionPetscLib, snes::PetscSNES, dm::PetscDM, u::PetscVec, tol::$PetscReal ) - isLinear_ = Ref{PetscBool}() + isLinear_ = Ref{PetscBool}(PETSC_FALSE) convRate_ = Ref{$PetscReal}() @chk ccall( @@ -4800,7 +4800,7 @@ $(_doc_external("DM/DMHasBasisTransform")) function DMHasBasisTransform(petsclib::PetscLibType, dm::PetscDM) end @for_petsc function DMHasBasisTransform(petsclib::$UnionPetscLib, dm::PetscDM ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMHasBasisTransform, $petsc_library), @@ -5944,7 +5944,7 @@ $(_doc_external("DM/DMHasVariableBounds")) function DMHasVariableBounds(petsclib::PetscLibType, dm::PetscDM) end @for_petsc function DMHasVariableBounds(petsclib::$UnionPetscLib, dm::PetscDM ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMHasVariableBounds, $petsc_library), @@ -6022,7 +6022,7 @@ $(_doc_external("DM/DMHasColoring")) function DMHasColoring(petsclib::PetscLibType, dm::PetscDM) end @for_petsc function DMHasColoring(petsclib::$UnionPetscLib, dm::PetscDM ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMHasColoring, $petsc_library), @@ -6060,7 +6060,7 @@ $(_doc_external("DM/DMHasCreateRestriction")) function DMHasCreateRestriction(petsclib::PetscLibType, dm::PetscDM) end @for_petsc function DMHasCreateRestriction(petsclib::$UnionPetscLib, dm::PetscDM ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMHasCreateRestriction, $petsc_library), @@ -6098,7 +6098,7 @@ $(_doc_external("DM/DMHasCreateInjection")) function DMHasCreateInjection(petsclib::PetscLibType, dm::PetscDM) end @for_petsc function DMHasCreateInjection(petsclib::$UnionPetscLib, dm::PetscDM ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMHasCreateInjection, $petsc_library), @@ -7259,7 +7259,7 @@ $(_doc_external("DM/DMGetFieldAvoidTensor")) function DMGetFieldAvoidTensor(petsclib::PetscLibType, dm::PetscDM, f::PetscInt) end @for_petsc function DMGetFieldAvoidTensor(petsclib::$UnionPetscLib, dm::PetscDM, f::$PetscInt ) - avoidTensor_ = Ref{PetscBool}() + avoidTensor_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMGetFieldAvoidTensor, $petsc_library), @@ -7345,8 +7345,8 @@ $(_doc_external("DM/DMGetAdjacency")) function DMGetAdjacency(petsclib::PetscLibType, dm::PetscDM, f::PetscInt) end @for_petsc function DMGetAdjacency(petsclib::$UnionPetscLib, dm::PetscDM, f::$PetscInt ) - useCone_ = Ref{PetscBool}() - useClosure_ = Ref{PetscBool}() + useCone_ = Ref{PetscBool}(PETSC_FALSE) + useClosure_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMGetAdjacency, $petsc_library), @@ -7429,8 +7429,8 @@ $(_doc_external("DM/DMGetBasicAdjacency")) function DMGetBasicAdjacency(petsclib::PetscLibType, dm::PetscDM) end @for_petsc function DMGetBasicAdjacency(petsclib::$UnionPetscLib, dm::PetscDM ) - useCone_ = Ref{PetscBool}() - useClosure_ = Ref{PetscBool}() + useCone_ = Ref{PetscBool}(PETSC_FALSE) + useClosure_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMGetBasicAdjacency, $petsc_library), @@ -8429,7 +8429,7 @@ $(_doc_external("DM/DMGetUseNatural")) function DMGetUseNatural(petsclib::PetscLibType, dm::PetscDM) end @for_petsc function DMGetUseNatural(petsclib::$UnionPetscLib, dm::PetscDM ) - useNatural_ = Ref{PetscBool}() + useNatural_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMGetUseNatural, $petsc_library), @@ -8997,7 +8997,7 @@ $(_doc_external("DM/DMHasLabel")) function DMHasLabel(petsclib::PetscLibType, dm::PetscDM, name::String) end @for_petsc function DMHasLabel(petsclib::$UnionPetscLib, dm::PetscDM, name::String ) - hasLabel_ = Ref{PetscBool}() + hasLabel_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMHasLabel, $petsc_library), @@ -9272,7 +9272,7 @@ $(_doc_external("DM/DMGetLabelOutput")) function DMGetLabelOutput(petsclib::PetscLibType, dm::PetscDM, name::String) end @for_petsc function DMGetLabelOutput(petsclib::$UnionPetscLib, dm::PetscDM, name::String ) - output_ = Ref{PetscBool}() + output_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMGetLabelOutput, $petsc_library), @@ -9408,7 +9408,7 @@ $(_doc_external("DM/DMCompareLabels")) function DMCompareLabels(petsclib::PetscLibType, dm0::PetscDM, dm1::PetscDM, message::String) end @for_petsc function DMCompareLabels(petsclib::$UnionPetscLib, dm0::PetscDM, dm1::PetscDM, message::String ) - equal_ = Ref{PetscBool}() + equal_ = Ref{PetscBool}(PETSC_FALSE) message_ = Ref(pointer(message)) @chk ccall( @@ -9663,7 +9663,7 @@ $(_doc_external("DM/DMIsBoundaryPoint")) function DMIsBoundaryPoint(petsclib::PetscLibType, dm::PetscDM, point::PetscInt) end @for_petsc function DMIsBoundaryPoint(petsclib::$UnionPetscLib, dm::PetscDM, point::$PetscInt ) - isBd_ = Ref{PetscBool}() + isBd_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMIsBoundaryPoint, $petsc_library), @@ -9701,7 +9701,7 @@ $(_doc_external("DM/DMHasBound")) function DMHasBound(petsclib::PetscLibType, dm::PetscDM) end @for_petsc function DMHasBound(petsclib::$UnionPetscLib, dm::PetscDM ) - hasBound_ = Ref{PetscBool}() + hasBound_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMHasBound, $petsc_library), @@ -10149,8 +10149,8 @@ $(_doc_external("DM/DMGetCompatibility")) function DMGetCompatibility(petsclib::PetscLibType, dm1::PetscDM, dm2::PetscDM) end @for_petsc function DMGetCompatibility(petsclib::$UnionPetscLib, dm1::PetscDM, dm2::PetscDM ) - compatible_ = Ref{PetscBool}() - set_ = Ref{PetscBool}() + compatible_ = Ref{PetscBool}(PETSC_FALSE) + set_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMGetCompatibility, $petsc_library), @@ -10292,7 +10292,7 @@ $(_doc_external("DM/DMMonitorSetFromOptions")) function DMMonitorSetFromOptions(petsclib::PetscLibType, dm::PetscDM, name::String, help::String, manual::String, monitor::external, monitorsetup::external) end @for_petsc function DMMonitorSetFromOptions(petsclib::$UnionPetscLib, dm::PetscDM, name::String, help::String, manual::String, monitor::external, monitorsetup::external ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMMonitorSetFromOptions, $petsc_library), @@ -10660,7 +10660,7 @@ function DMPolytopeMatchOrientation(petsclib::PetscLibType, ct::DMPolytopeType, @for_petsc function DMPolytopeMatchOrientation(petsclib::$UnionPetscLib, ct::DMPolytopeType, sourceCone::Vector{$PetscInt}, targetCone::Vector{$PetscInt} ) ornt_ = Ref{$PetscInt}() - found_ = Ref{PetscBool}() + found_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMPolytopeMatchOrientation, $petsc_library), @@ -10757,7 +10757,7 @@ function DMPolytopeMatchVertexOrientation(petsclib::PetscLibType, ct::DMPolytope @for_petsc function DMPolytopeMatchVertexOrientation(petsclib::$UnionPetscLib, ct::DMPolytopeType, sourceVert::Vector{$PetscInt}, targetVert::Vector{$PetscInt} ) ornt_ = Ref{$PetscInt}() - found_ = Ref{PetscBool}() + found_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMPolytopeMatchVertexOrientation, $petsc_library), @@ -10843,7 +10843,7 @@ $(_doc_external("DM/DMPolytopeInCellTest")) function DMPolytopeInCellTest(petsclib::PetscLibType, ct::DMPolytopeType, point::Vector{PetscReal}) end @for_petsc function DMPolytopeInCellTest(petsclib::$UnionPetscLib, ct::DMPolytopeType, point::Vector{$PetscReal} ) - inside_ = Ref{PetscBool}() + inside_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMPolytopeInCellTest, $petsc_library), @@ -11307,7 +11307,7 @@ $(_doc_external("DM/DMHasNamedGlobalVector")) function DMHasNamedGlobalVector(petsclib::PetscLibType, dm::PetscDM, name::String) end @for_petsc function DMHasNamedGlobalVector(petsclib::$UnionPetscLib, dm::PetscDM, name::String ) - exists_ = Ref{PetscBool}() + exists_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMHasNamedGlobalVector, $petsc_library), @@ -11416,7 +11416,7 @@ $(_doc_external("DM/DMHasNamedLocalVector")) function DMHasNamedLocalVector(petsclib::PetscLibType, dm::PetscDM, name::String) end @for_petsc function DMHasNamedLocalVector(petsclib::$UnionPetscLib, dm::PetscDM, name::String ) - exists_ = Ref{PetscBool}() + exists_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMHasNamedLocalVector, $petsc_library), @@ -12983,7 +12983,7 @@ $(_doc_external("DM/DMGetCoordinatesLocalizedLocal")) function DMGetCoordinatesLocalizedLocal(petsclib::PetscLibType, dm::PetscDM) end @for_petsc function DMGetCoordinatesLocalizedLocal(petsclib::$UnionPetscLib, dm::PetscDM ) - areLocalized_ = Ref{PetscBool}() + areLocalized_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMGetCoordinatesLocalizedLocal, $petsc_library), @@ -13019,7 +13019,7 @@ $(_doc_external("DM/DMGetCoordinatesLocalized")) function DMGetCoordinatesLocalized(petsclib::PetscLibType, dm::PetscDM) end @for_petsc function DMGetCoordinatesLocalized(petsclib::$UnionPetscLib, dm::PetscDM ) - areLocalized_ = Ref{PetscBool}() + areLocalized_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMGetCoordinatesLocalized, $petsc_library), @@ -13055,7 +13055,7 @@ $(_doc_external("DM/DMGetSparseLocalize")) function DMGetSparseLocalize(petsclib::PetscLibType, dm::PetscDM) end @for_petsc function DMGetSparseLocalize(petsclib::$UnionPetscLib, dm::PetscDM ) - sparse_ = Ref{PetscBool}() + sparse_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMGetSparseLocalize, $petsc_library), @@ -13185,7 +13185,7 @@ $(_doc_external("DM/DMIsForest")) function DMIsForest(petsclib::PetscLibType, dm::PetscDM) end @for_petsc function DMIsForest(petsclib::$UnionPetscLib, dm::PetscDM ) - isForest_ = Ref{PetscBool}() + isForest_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMIsForest, $petsc_library), @@ -14050,7 +14050,7 @@ $(_doc_external("DMForest/DMForestGetAdaptivitySuccess")) function DMForestGetAdaptivitySuccess(petsclib::PetscLibType, dm::PetscDM) end @for_petsc function DMForestGetAdaptivitySuccess(petsclib::$UnionPetscLib, dm::PetscDM ) - success_ = Ref{PetscBool}() + success_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMForestGetAdaptivitySuccess, $petsc_library), @@ -14163,7 +14163,7 @@ $(_doc_external("DMForest/DMForestGetComputeAdaptivitySF")) function DMForestGetComputeAdaptivitySF(petsclib::PetscLibType, dm::PetscDM) end @for_petsc function DMForestGetComputeAdaptivitySF(petsclib::$UnionPetscLib, dm::PetscDM ) - computeSF_ = Ref{PetscBool}() + computeSF_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMForestGetComputeAdaptivitySF, $petsc_library), @@ -22727,7 +22727,7 @@ $(_doc_external("DMNetwork/DMNetworkIsSharedVertex")) function DMNetworkIsSharedVertex(petsclib::PetscLibType, dm::PetscDM, p::PetscInt) end @for_petsc function DMNetworkIsSharedVertex(petsclib::$UnionPetscLib, dm::PetscDM, p::$PetscInt ) - flag_ = Ref{PetscBool}() + flag_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMNetworkIsSharedVertex, $petsc_library), @@ -22764,7 +22764,7 @@ $(_doc_external("DMNetwork/DMNetworkIsGhostVertex")) function DMNetworkIsGhostVertex(petsclib::PetscLibType, dm::PetscDM, p::PetscInt) end @for_petsc function DMNetworkIsGhostVertex(petsclib::$UnionPetscLib, dm::PetscDM, p::$PetscInt ) - isghost_ = Ref{PetscBool}() + isghost_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMNetworkIsGhostVertex, $petsc_library), @@ -23125,7 +23125,7 @@ $(_doc_external("DMNetwork/DMNetworkViewSetShowRanks")) function DMNetworkViewSetShowRanks(petsclib::PetscLibType, dm::PetscDM) end @for_petsc function DMNetworkViewSetShowRanks(petsclib::$UnionPetscLib, dm::PetscDM ) - showranks_ = Ref{PetscBool}() + showranks_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMNetworkViewSetShowRanks, $petsc_library), @@ -23161,7 +23161,7 @@ $(_doc_external("DMNetwork/DMNetworkViewSetShowGlobal")) function DMNetworkViewSetShowGlobal(petsclib::PetscLibType, dm::PetscDM) end @for_petsc function DMNetworkViewSetShowGlobal(petsclib::$UnionPetscLib, dm::PetscDM ) - showglobal_ = Ref{PetscBool}() + showglobal_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMNetworkViewSetShowGlobal, $petsc_library), @@ -23197,7 +23197,7 @@ $(_doc_external("DMNetwork/DMNetworkViewSetShowVertices")) function DMNetworkViewSetShowVertices(petsclib::PetscLibType, dm::PetscDM) end @for_petsc function DMNetworkViewSetShowVertices(petsclib::$UnionPetscLib, dm::PetscDM ) - showvertices_ = Ref{PetscBool}() + showvertices_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMNetworkViewSetShowVertices, $petsc_library), @@ -23233,7 +23233,7 @@ $(_doc_external("DMNetwork/DMNetworkViewSetShowNumbering")) function DMNetworkViewSetShowNumbering(petsclib::PetscLibType, dm::PetscDM) end @for_petsc function DMNetworkViewSetShowNumbering(petsclib::$UnionPetscLib, dm::PetscDM ) - shownumbering_ = Ref{PetscBool}() + shownumbering_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMNetworkViewSetShowNumbering, $petsc_library), @@ -24899,9 +24899,9 @@ $(_doc_external("DMStag/DMStagGetIsFirstRank")) function DMStagGetIsFirstRank(petsclib::PetscLibType, dm::PetscDM) end @for_petsc function DMStagGetIsFirstRank(petsclib::$UnionPetscLib, dm::PetscDM ) - isFirstRank0_ = Ref{PetscBool}() - isFirstRank1_ = Ref{PetscBool}() - isFirstRank2_ = Ref{PetscBool}() + isFirstRank0_ = Ref{PetscBool}(PETSC_FALSE) + isFirstRank1_ = Ref{PetscBool}(PETSC_FALSE) + isFirstRank2_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMStagGetIsFirstRank, $petsc_library), @@ -24946,9 +24946,9 @@ $(_doc_external("DMStag/DMStagGetIsLastRank")) function DMStagGetIsLastRank(petsclib::PetscLibType, dm::PetscDM) end @for_petsc function DMStagGetIsLastRank(petsclib::$UnionPetscLib, dm::PetscDM ) - isLastRank0_ = Ref{PetscBool}() - isLastRank1_ = Ref{PetscBool}() - isLastRank2_ = Ref{PetscBool}() + isLastRank0_ = Ref{PetscBool}(PETSC_FALSE) + isLastRank1_ = Ref{PetscBool}(PETSC_FALSE) + isLastRank2_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMStagGetIsLastRank, $petsc_library), @@ -27962,7 +27962,7 @@ $(_doc_external("DMMoab/DMMoabIsEntityOnBoundary")) function DMMoabIsEntityOnBoundary(petsclib::PetscLibType, dm::PetscDM, ent::moab_EntityHandle) end @for_petsc function DMMoabIsEntityOnBoundary(petsclib::$UnionPetscLib, dm::PetscDM, ent::moab_EntityHandle ) - ent_on_boundary_ = Ref{PetscBool}() + ent_on_boundary_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMMoabIsEntityOnBoundary, $petsc_library), @@ -27985,7 +27985,7 @@ $(_doc_external("DMMoab/DMMoabCheckBoundaryVertices")) function DMMoabCheckBoundaryVertices(petsclib::PetscLibType, dm::PetscDM, nconn::PetscInt, cnt::moab_EntityHandle) end @for_petsc function DMMoabCheckBoundaryVertices(petsclib::$UnionPetscLib, dm::PetscDM, nconn::$PetscInt, cnt::moab_EntityHandle ) - isbdvtx_ = Ref{PetscBool}() + isbdvtx_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMMoabCheckBoundaryVertices, $petsc_library), @@ -28751,7 +28751,7 @@ $(_doc_external("DMPlex/DMPlexGetSaveTransform")) function DMPlexGetSaveTransform(petsclib::PetscLibType, dm::PetscDM) end @for_petsc function DMPlexGetSaveTransform(petsclib::$UnionPetscLib, dm::PetscDM ) - save_ = Ref{PetscBool}() + save_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMPlexGetSaveTransform, $petsc_library), @@ -28815,7 +28815,7 @@ $(_doc_external("DMPlex/DMPlexGetRefinementUniform")) function DMPlexGetRefinementUniform(petsclib::PetscLibType, dm::PetscDM) end @for_petsc function DMPlexGetRefinementUniform(petsclib::$UnionPetscLib, dm::PetscDM ) - refinementUniform_ = Ref{PetscBool}() + refinementUniform_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMPlexGetRefinementUniform, $petsc_library), @@ -29274,7 +29274,7 @@ $(_doc_external("DMPlex/DMPlexRebalanceSharedPoints")) function DMPlexRebalanceSharedPoints(petsclib::PetscLibType, dm::PetscDM, entityDepth::PetscInt, useInitialGuess::PetscBool, parallel::PetscBool) end @for_petsc function DMPlexRebalanceSharedPoints(petsclib::$UnionPetscLib, dm::PetscDM, entityDepth::$PetscInt, useInitialGuess::PetscBool, parallel::PetscBool ) - success_ = Ref{PetscBool}() + success_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMPlexRebalanceSharedPoints, $petsc_library), @@ -29516,7 +29516,7 @@ $(_doc_external("DMPlex/DMPlexGetInterpolatePreferTensor")) function DMPlexGetInterpolatePreferTensor(petsclib::PetscLibType, dm::PetscDM) end @for_petsc function DMPlexGetInterpolatePreferTensor(petsclib::$UnionPetscLib, dm::PetscDM ) - preferTensor_ = Ref{PetscBool}() + preferTensor_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMPlexGetInterpolatePreferTensor, $petsc_library), @@ -29633,7 +29633,7 @@ $(_doc_external("DMPlex/DMPlexMetricIsIsotropic")) function DMPlexMetricIsIsotropic(petsclib::PetscLibType, dm::PetscDM) end @for_petsc function DMPlexMetricIsIsotropic(petsclib::$UnionPetscLib, dm::PetscDM ) - isotropic_ = Ref{PetscBool}() + isotropic_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMPlexMetricIsIsotropic, $petsc_library), @@ -29697,7 +29697,7 @@ $(_doc_external("DMPlex/DMPlexMetricIsUniform")) function DMPlexMetricIsUniform(petsclib::PetscLibType, dm::PetscDM) end @for_petsc function DMPlexMetricIsUniform(petsclib::$UnionPetscLib, dm::PetscDM ) - uniform_ = Ref{PetscBool}() + uniform_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMPlexMetricIsUniform, $petsc_library), @@ -29761,7 +29761,7 @@ $(_doc_external("DMPlex/DMPlexMetricRestrictAnisotropyFirst")) function DMPlexMetricRestrictAnisotropyFirst(petsclib::PetscLibType, dm::PetscDM) end @for_petsc function DMPlexMetricRestrictAnisotropyFirst(petsclib::$UnionPetscLib, dm::PetscDM ) - restrictAnisotropyFirst_ = Ref{PetscBool}() + restrictAnisotropyFirst_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMPlexMetricRestrictAnisotropyFirst, $petsc_library), @@ -29825,7 +29825,7 @@ $(_doc_external("DMPlex/DMPlexMetricNoInsertion")) function DMPlexMetricNoInsertion(petsclib::PetscLibType, dm::PetscDM) end @for_petsc function DMPlexMetricNoInsertion(petsclib::$UnionPetscLib, dm::PetscDM ) - noInsert_ = Ref{PetscBool}() + noInsert_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMPlexMetricNoInsertion, $petsc_library), @@ -29889,7 +29889,7 @@ $(_doc_external("DMPlex/DMPlexMetricNoSwapping")) function DMPlexMetricNoSwapping(petsclib::PetscLibType, dm::PetscDM) end @for_petsc function DMPlexMetricNoSwapping(petsclib::$UnionPetscLib, dm::PetscDM ) - noSwap_ = Ref{PetscBool}() + noSwap_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMPlexMetricNoSwapping, $petsc_library), @@ -29953,7 +29953,7 @@ $(_doc_external("DMPlex/DMPlexMetricNoMovement")) function DMPlexMetricNoMovement(petsclib::PetscLibType, dm::PetscDM) end @for_petsc function DMPlexMetricNoMovement(petsclib::$UnionPetscLib, dm::PetscDM ) - noMove_ = Ref{PetscBool}() + noMove_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMPlexMetricNoMovement, $petsc_library), @@ -30017,7 +30017,7 @@ $(_doc_external("DMPlex/DMPlexMetricNoSurf")) function DMPlexMetricNoSurf(petsclib::PetscLibType, dm::PetscDM) end @for_petsc function DMPlexMetricNoSurf(petsclib::$UnionPetscLib, dm::PetscDM ) - noSurf_ = Ref{PetscBool}() + noSurf_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMPlexMetricNoSurf, $petsc_library), @@ -31359,7 +31359,7 @@ $(_doc_external("DMPlex/DMPlexIsSimplex")) function DMPlexIsSimplex(petsclib::PetscLibType, dm::PetscDM) end @for_petsc function DMPlexIsSimplex(petsclib::$UnionPetscLib, dm::PetscDM ) - simplex_ = Ref{PetscBool}() + simplex_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMPlexIsSimplex, $petsc_library), @@ -33100,7 +33100,7 @@ $(_doc_external("DMPlex/DMPlexEqual")) function DMPlexEqual(petsclib::PetscLibType, dmA::PetscDM, dmB::PetscDM) end @for_petsc function DMPlexEqual(petsclib::$UnionPetscLib, dmA::PetscDM, dmB::PetscDM ) - equal_ = Ref{PetscBool}() + equal_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMPlexEqual, $petsc_library), @@ -34756,7 +34756,7 @@ $(_doc_external("DMPlex/DMPlexGetRegularRefinement")) function DMPlexGetRegularRefinement(petsclib::PetscLibType, dm::PetscDM) end @for_petsc function DMPlexGetRegularRefinement(petsclib::$UnionPetscLib, dm::PetscDM ) - regular_ = Ref{PetscBool}() + regular_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMPlexGetRegularRefinement, $petsc_library), @@ -34984,7 +34984,7 @@ $(_doc_external("DMPlex/DMPlexGetAdjacencyUseAnchors")) function DMPlexGetAdjacencyUseAnchors(petsclib::PetscLibType, dm::PetscDM) end @for_petsc function DMPlexGetAdjacencyUseAnchors(petsclib::$UnionPetscLib, dm::PetscDM ) - useAnchors_ = Ref{PetscBool}() + useAnchors_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMPlexGetAdjacencyUseAnchors, $petsc_library), @@ -35402,7 +35402,7 @@ $(_doc_external("DMPlex/DMPlexGetPartitionBalance")) function DMPlexGetPartitionBalance(petsclib::PetscLibType, dm::PetscDM) end @for_petsc function DMPlexGetPartitionBalance(petsclib::$UnionPetscLib, dm::PetscDM ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMPlexGetPartitionBalance, $petsc_library), @@ -35728,7 +35728,7 @@ $(_doc_external("DMPlex/DMPlexDistributeGetDefault")) function DMPlexDistributeGetDefault(petsclib::PetscLibType, dm::PetscDM) end @for_petsc function DMPlexDistributeGetDefault(petsclib::$UnionPetscLib, dm::PetscDM ) - dist_ = Ref{PetscBool}() + dist_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMPlexDistributeGetDefault, $petsc_library), @@ -35839,7 +35839,7 @@ $(_doc_external("DMPlex/DMPlexIsDistributed")) function DMPlexIsDistributed(petsclib::PetscLibType, dm::PetscDM) end @for_petsc function DMPlexIsDistributed(petsclib::$UnionPetscLib, dm::PetscDM ) - distributed_ = Ref{PetscBool}() + distributed_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMPlexIsDistributed, $petsc_library), @@ -36713,7 +36713,7 @@ $(_doc_external("DMPlex/DMPlexGetUseMatClosurePermutation")) function DMPlexGetUseMatClosurePermutation(petsclib::PetscLibType, dm::PetscDM) end @for_petsc function DMPlexGetUseMatClosurePermutation(petsclib::$UnionPetscLib, dm::PetscDM ) - useClPerm_ = Ref{PetscBool}() + useClPerm_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMPlexGetUseMatClosurePermutation, $petsc_library), @@ -39236,7 +39236,7 @@ $(_doc_external("DMPlex/DMPlexGetCellCoordinates")) function DMPlexGetCellCoordinates(petsclib::PetscLibType, dm::PetscDM, cell::PetscInt) end @for_petsc function DMPlexGetCellCoordinates(petsclib::$UnionPetscLib, dm::PetscDM, cell::$PetscInt ) - isDG_ = Ref{PetscBool}() + isDG_ = Ref{PetscBool}(PETSC_FALSE) Nc_ = Ref{$PetscInt}() array_ = Ref{Ptr{$PetscScalar}}(C_NULL) coords_ = Ref{Ptr{$PetscScalar}}(C_NULL) @@ -42807,7 +42807,7 @@ function DMPlexGetOrientedFace(petsclib::PetscLibType, dm::PetscDM, cell::PetscI @for_petsc function DMPlexGetOrientedFace(petsclib::$UnionPetscLib, dm::PetscDM, cell::$PetscInt, faceSize::$PetscInt, face::Vector{$PetscInt}, numCorners::$PetscInt, indices::Vector{$PetscInt}, origVertices::Vector{$PetscInt} ) faceVertices = Vector{$PetscInt}(undef, ni); # CHECK SIZE!! - posOriented_ = Ref{PetscBool}() + posOriented_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMPlexGetOrientedFace, $petsc_library), @@ -44791,7 +44791,7 @@ $(_doc_external("Ts/DMTSCheckJacobian")) function DMTSCheckJacobian(petsclib::PetscLibType, ts::TS, dm::PetscDM, t::PetscReal, u::PetscVec, u_t::PetscVec, tol::PetscReal) end @for_petsc function DMTSCheckJacobian(petsclib::$UnionPetscLib, ts::TS, dm::PetscDM, t::$PetscReal, u::PetscVec, u_t::PetscVec, tol::$PetscReal ) - isLinear_ = Ref{PetscBool}() + isLinear_ = Ref{PetscBool}(PETSC_FALSE) convRate_ = Ref{$PetscReal}() @chk ccall( diff --git a/src/autowrapped/DMaddons_wrappers.jl b/src/autowrapped/DMaddons_wrappers.jl index da268f8e2..08a4576e7 100644 --- a/src/autowrapped/DMaddons_wrappers.jl +++ b/src/autowrapped/DMaddons_wrappers.jl @@ -1233,7 +1233,7 @@ $(_doc_external("DM/DMSwarmDataBucketQueryDMSwarmDataFieldByName")) function DMSwarmDataBucketQueryDMSwarmDataFieldByName(petsclib::PetscLibType, db::DMSwarmDataBucket, name::String) end @for_petsc function DMSwarmDataBucketQueryDMSwarmDataFieldByName(petsclib::$UnionPetscLib, db::DMSwarmDataBucket, name::String ) - found_ = Ref{PetscBool}() + found_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMSwarmDataBucketQueryDMSwarmDataFieldByName, $petsc_library), @@ -1458,7 +1458,7 @@ $(_doc_external("DM/DMSwarmSortGetIsValid")) function DMSwarmSortGetIsValid(petsclib::PetscLibType, sw::PetscDM) end @for_petsc function DMSwarmSortGetIsValid(petsclib::$UnionPetscLib, sw::PetscDM ) - isvalid_ = Ref{PetscBool}() + isvalid_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMSwarmSortGetIsValid, $petsc_library), @@ -2030,7 +2030,7 @@ $(_doc_external("DM/DMPlexPointQueueEmptyCollective")) function DMPlexPointQueueEmptyCollective(petsclib::PetscLibType, obj::PetscObject, queue::DMPlexPoCintQueue) end @for_petsc function DMPlexPointQueueEmptyCollective(petsclib::$UnionPetscLib, obj::PetscObject, queue::DMPlexPoCintQueue ) - empty_ = Ref{PetscBool}() + empty_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMPlexPointQueueEmptyCollective, $petsc_library), @@ -3573,7 +3573,7 @@ $(_doc_external("DM/DMPlexTransformGetMatchStrata")) function DMPlexTransformGetMatchStrata(petsclib::PetscLibType, tr::DMPlexTransform) end @for_petsc function DMPlexTransformGetMatchStrata(petsclib::$UnionPetscLib, tr::DMPlexTransform ) - match_ = Ref{PetscBool}() + match_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMPlexTransformGetMatchStrata, $petsc_library), @@ -4174,7 +4174,7 @@ $(_doc_external("DM/DMPlexTransformCohesiveExtrudeGetTensor")) function DMPlexTransformCohesiveExtrudeGetTensor(petsclib::PetscLibType, tr::DMPlexTransform) end @for_petsc function DMPlexTransformCohesiveExtrudeGetTensor(petsclib::$UnionPetscLib, tr::DMPlexTransform ) - useTensor_ = Ref{PetscBool}() + useTensor_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMPlexTransformCohesiveExtrudeGetTensor, $petsc_library), @@ -4476,7 +4476,7 @@ $(_doc_external("DM/DMPlexTransformExtrudeGetTensor")) function DMPlexTransformExtrudeGetTensor(petsclib::PetscLibType, tr::DMPlexTransform) end @for_petsc function DMPlexTransformExtrudeGetTensor(petsclib::$UnionPetscLib, tr::DMPlexTransform ) - useTensor_ = Ref{PetscBool}() + useTensor_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMPlexTransformExtrudeGetTensor, $petsc_library), @@ -4542,7 +4542,7 @@ $(_doc_external("DM/DMPlexTransformExtrudeGetSymmetric")) function DMPlexTransformExtrudeGetSymmetric(petsclib::PetscLibType, tr::DMPlexTransform) end @for_petsc function DMPlexTransformExtrudeGetSymmetric(petsclib::$UnionPetscLib, tr::DMPlexTransform ) - symmetric_ = Ref{PetscBool}() + symmetric_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMPlexTransformExtrudeGetSymmetric, $petsc_library), @@ -4610,7 +4610,7 @@ $(_doc_external("DM/DMPlexTransformExtrudeGetPeriodic")) function DMPlexTransformExtrudeGetPeriodic(petsclib::PetscLibType, tr::DMPlexTransform) end @for_petsc function DMPlexTransformExtrudeGetPeriodic(petsclib::$UnionPetscLib, tr::DMPlexTransform ) - periodic_ = Ref{PetscBool}() + periodic_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMPlexTransformExtrudeGetPeriodic, $petsc_library), @@ -5277,7 +5277,7 @@ $(_doc_external("DM/DMLabelCompare")) function DMLabelCompare(petsclib::PetscLibType, comm::MPI_Comm, l0::DMLabel, l1::DMLabel, message::Cchar) end @for_petsc function DMLabelCompare(petsclib::$UnionPetscLib, comm::MPI_Comm, l0::DMLabel, l1::DMLabel, message::Cchar ) - equal_ = Ref{PetscBool}() + equal_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMLabelCompare, $petsc_library), @@ -5448,7 +5448,7 @@ $(_doc_external("DM/DMLabelHasValue")) function DMLabelHasValue(petsclib::PetscLibType, label::DMLabel, value::PetscInt) end @for_petsc function DMLabelHasValue(petsclib::$UnionPetscLib, label::DMLabel, value::$PetscInt ) - contains_ = Ref{PetscBool}() + contains_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMLabelHasValue, $petsc_library), @@ -5485,7 +5485,7 @@ $(_doc_external("DM/DMLabelHasPoint")) function DMLabelHasPoint(petsclib::PetscLibType, label::DMLabel, point::PetscInt) end @for_petsc function DMLabelHasPoint(petsclib::$UnionPetscLib, label::DMLabel, point::$PetscInt ) - contains_ = Ref{PetscBool}() + contains_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMLabelHasPoint, $petsc_library), @@ -5523,7 +5523,7 @@ $(_doc_external("DM/DMLabelStratumHasPoint")) function DMLabelStratumHasPoint(petsclib::PetscLibType, label::DMLabel, value::PetscInt, point::PetscInt) end @for_petsc function DMLabelStratumHasPoint(petsclib::$UnionPetscLib, label::DMLabel, value::$PetscInt, point::$PetscInt ) - contains_ = Ref{PetscBool}() + contains_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMLabelStratumHasPoint, $petsc_library), @@ -5956,7 +5956,7 @@ $(_doc_external("DM/DMLabelHasStratum")) function DMLabelHasStratum(petsclib::PetscLibType, label::DMLabel, value::PetscInt) end @for_petsc function DMLabelHasStratum(petsclib::$UnionPetscLib, label::DMLabel, value::$PetscInt ) - exists_ = Ref{PetscBool}() + exists_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:DMLabelHasStratum, $petsc_library), diff --git a/src/autowrapped/IS_wrappers.jl b/src/autowrapped/IS_wrappers.jl index 71bb6d2d6..5c878f5c6 100644 --- a/src/autowrapped/IS_wrappers.jl +++ b/src/autowrapped/IS_wrappers.jl @@ -326,7 +326,7 @@ $(_doc_external("Vec/ISGetInfo")) function ISGetInfo(petsclib::PetscLibType, is::IS, info::ISInfo, type::ISInfoType, compute::PetscBool) end @for_petsc function ISGetInfo(petsclib::$UnionPetscLib, is::IS, info::ISInfo, type::ISInfoType, compute::PetscBool ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:ISGetInfo, $petsc_library), @@ -362,7 +362,7 @@ $(_doc_external("Vec/ISIdentity")) function ISIdentity(petsclib::PetscLibType, is::IS) end @for_petsc function ISIdentity(petsclib::$UnionPetscLib, is::IS ) - ident_ = Ref{PetscBool}() + ident_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:ISIdentity, $petsc_library), @@ -433,7 +433,7 @@ function ISContiguousLocal(petsclib::PetscLibType, is::IS, gstart::PetscInt, gen @for_petsc function ISContiguousLocal(petsclib::$UnionPetscLib, is::IS, gstart::$PetscInt, gend::$PetscInt ) start_ = Ref{$PetscInt}() - contig_ = Ref{PetscBool}() + contig_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:ISContiguousLocal, $petsc_library), @@ -471,7 +471,7 @@ $(_doc_external("Vec/ISPermutation")) function ISPermutation(petsclib::PetscLibType, is::IS) end @for_petsc function ISPermutation(petsclib::$UnionPetscLib, is::IS ) - perm_ = Ref{PetscBool}() + perm_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:ISPermutation, $petsc_library), @@ -1297,7 +1297,7 @@ $(_doc_external("Vec/ISSorted")) function ISSorted(petsclib::PetscLibType, is::IS) end @for_petsc function ISSorted(petsclib::$UnionPetscLib, is::IS ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:ISSorted, $petsc_library), @@ -1576,7 +1576,7 @@ $(_doc_external("Vec/ISGetCompressOutput")) function ISGetCompressOutput(petsclib::PetscLibType, is::IS) end @for_petsc function ISGetCompressOutput(petsclib::$UnionPetscLib, is::IS ) - compress_ = Ref{PetscBool}() + compress_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:ISGetCompressOutput, $petsc_library), @@ -2765,7 +2765,7 @@ $(_doc_external("Vec/ISEqual")) function ISEqual(petsclib::PetscLibType, is1::IS, is2::IS) end @for_petsc function ISEqual(petsclib::$UnionPetscLib, is1::IS, is2::IS ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:ISEqual, $petsc_library), @@ -2804,7 +2804,7 @@ $(_doc_external("Vec/ISEqualUnsorted")) function ISEqualUnsorted(petsclib::PetscLibType, is1::IS, is2::IS) end @for_petsc function ISEqualUnsorted(petsclib::$UnionPetscLib, is1::IS, is2::IS ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:ISEqualUnsorted, $petsc_library), diff --git a/src/autowrapped/KSP_wrappers.jl b/src/autowrapped/KSP_wrappers.jl index c3a86d45c..352ccd24f 100644 --- a/src/autowrapped/KSP_wrappers.jl +++ b/src/autowrapped/KSP_wrappers.jl @@ -349,7 +349,7 @@ $(_doc_external("KSP/KSPGetReusePreconditioner")) function KSPGetReusePreconditioner(petsclib::PetscLibType, ksp::PetscKSP) end @for_petsc function KSPGetReusePreconditioner(petsclib::$UnionPetscLib, ksp::PetscKSP ) - flag_ = Ref{PetscBool}() + flag_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:KSPGetReusePreconditioner, $petsc_library), @@ -1197,7 +1197,7 @@ $(_doc_external("KSP/KSPGetInitialGuessNonzero")) function KSPGetInitialGuessNonzero(petsclib::PetscLibType, ksp::PetscKSP) end @for_petsc function KSPGetInitialGuessNonzero(petsclib::$UnionPetscLib, ksp::PetscKSP ) - flag_ = Ref{PetscBool}() + flag_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:KSPGetInitialGuessNonzero, $petsc_library), @@ -1268,7 +1268,7 @@ $(_doc_external("KSP/KSPGetErrorIfNotConverged")) function KSPGetErrorIfNotConverged(petsclib::PetscLibType, ksp::PetscKSP) end @for_petsc function KSPGetErrorIfNotConverged(petsclib::$UnionPetscLib, ksp::PetscKSP ) - flag_ = Ref{PetscBool}() + flag_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:KSPGetErrorIfNotConverged, $petsc_library), @@ -1337,7 +1337,7 @@ $(_doc_external("KSP/KSPGetInitialGuessKnoll")) function KSPGetInitialGuessKnoll(petsclib::PetscLibType, ksp::PetscKSP) end @for_petsc function KSPGetInitialGuessKnoll(petsclib::$UnionPetscLib, ksp::PetscKSP ) - flag_ = Ref{PetscBool}() + flag_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:KSPGetInitialGuessKnoll, $petsc_library), @@ -1378,7 +1378,7 @@ $(_doc_external("KSP/KSPGetComputeSingularValues")) function KSPGetComputeSingularValues(petsclib::PetscLibType, ksp::PetscKSP) end @for_petsc function KSPGetComputeSingularValues(petsclib::$UnionPetscLib, ksp::PetscKSP ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:KSPGetComputeSingularValues, $petsc_library), @@ -1453,7 +1453,7 @@ $(_doc_external("KSP/KSPGetComputeEigenvalues")) function KSPGetComputeEigenvalues(petsclib::PetscLibType, ksp::PetscKSP) end @for_petsc function KSPGetComputeEigenvalues(petsclib::$UnionPetscLib, ksp::PetscKSP ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:KSPGetComputeEigenvalues, $petsc_library), @@ -2290,7 +2290,7 @@ $(_doc_external("KSP/KSPGetDiagonalScale")) function KSPGetDiagonalScale(petsclib::PetscLibType, ksp::PetscKSP) end @for_petsc function KSPGetDiagonalScale(petsclib::$UnionPetscLib, ksp::PetscKSP ) - scale_ = Ref{PetscBool}() + scale_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:KSPGetDiagonalScale, $petsc_library), @@ -2360,7 +2360,7 @@ $(_doc_external("KSP/KSPGetDiagonalScaleFix")) function KSPGetDiagonalScaleFix(petsclib::PetscLibType, ksp::PetscKSP) end @for_petsc function KSPGetDiagonalScaleFix(petsclib::$UnionPetscLib, ksp::PetscKSP ) - fix_ = Ref{PetscBool}() + fix_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:KSPGetDiagonalScaleFix, $petsc_library), @@ -2497,7 +2497,7 @@ $(_doc_external("KSP/KSPSetUseExplicitTranspose")) function KSPSetUseExplicitTranspose(petsclib::PetscLibType, ksp::PetscKSP) end @for_petsc function KSPSetUseExplicitTranspose(petsclib::$UnionPetscLib, ksp::PetscKSP ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:KSPSetUseExplicitTranspose, $petsc_library), @@ -3631,7 +3631,7 @@ $(_doc_external("KSP/KSPGetConvergedNegativeCurvature")) function KSPGetConvergedNegativeCurvature(petsclib::PetscLibType, ksp::PetscKSP) end @for_petsc function KSPGetConvergedNegativeCurvature(petsclib::$UnionPetscLib, ksp::PetscKSP ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:KSPGetConvergedNegativeCurvature, $petsc_library), @@ -4769,8 +4769,8 @@ $(_doc_external("KSP/KSPGetOperatorsSet")) function KSPGetOperatorsSet(petsclib::PetscLibType, ksp::PetscKSP) end @for_petsc function KSPGetOperatorsSet(petsclib::$UnionPetscLib, ksp::PetscKSP ) - mat_ = Ref{PetscBool}() - pmat_ = Ref{PetscBool}() + mat_ = Ref{PetscBool}(PETSC_FALSE) + pmat_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:KSPGetOperatorsSet, $petsc_library), @@ -7915,7 +7915,7 @@ $(_doc_external("KSP/KSPPIPEGCRGetUnrollW")) function KSPPIPEGCRGetUnrollW(petsclib::PetscLibType, ksp::PetscKSP) end @for_petsc function KSPPIPEGCRGetUnrollW(petsclib::$UnionPetscLib, ksp::PetscKSP ) - unroll_w_ = Ref{PetscBool}() + unroll_w_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:KSPPIPEGCRGetUnrollW, $petsc_library), @@ -8256,7 +8256,7 @@ $(_doc_external("KSP/KSPMINRESGetUseQLP")) function KSPMINRESGetUseQLP(petsclib::PetscLibType, ksp::PetscKSP) end @for_petsc function KSPMINRESGetUseQLP(petsclib::$UnionPetscLib, ksp::PetscKSP ) - qlp_ = Ref{PetscBool}() + qlp_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:KSPMINRESGetUseQLP, $petsc_library), diff --git a/src/autowrapped/Mat_wrappers.jl b/src/autowrapped/Mat_wrappers.jl index 92fa46b8a..f4f83fe43 100644 --- a/src/autowrapped/Mat_wrappers.jl +++ b/src/autowrapped/Mat_wrappers.jl @@ -1196,7 +1196,7 @@ $(_doc_external("Mat/MatMissingDiagonal")) function MatMissingDiagonal(petsclib::PetscLibType, mat::PetscMat) end @for_petsc function MatMissingDiagonal(petsclib::$UnionPetscLib, mat::PetscMat ) - missing_ = Ref{PetscBool}() + missing_ = Ref{PetscBool}(PETSC_FALSE) dd_ = Ref{$PetscInt}() @chk ccall( @@ -3712,7 +3712,7 @@ $(_doc_external("Mat/MatFactorGetCanUseOrdering")) function MatFactorGetCanUseOrdering(petsclib::PetscLibType, mat::PetscMat) end @for_petsc function MatFactorGetCanUseOrdering(petsclib::$UnionPetscLib, mat::PetscMat ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:MatFactorGetCanUseOrdering, $petsc_library), @@ -3832,7 +3832,7 @@ $(_doc_external("Mat/MatGetFactorAvailable")) function MatGetFactorAvailable(petsclib::PetscLibType, mat::PetscMat, type::MatSolverType, ftype::MatFactorType) end @for_petsc function MatGetFactorAvailable(petsclib::$UnionPetscLib, mat::PetscMat, type::MatSolverType, ftype::MatFactorType ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:MatGetFactorAvailable, $petsc_library), @@ -4268,7 +4268,7 @@ $(_doc_external("Mat/MatIsTranspose")) function MatIsTranspose(petsclib::PetscLibType, A::PetscMat, B::PetscMat, tol::PetscReal) end @for_petsc function MatIsTranspose(petsclib::$UnionPetscLib, A::PetscMat, B::PetscMat, tol::$PetscReal ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:MatIsTranspose, $petsc_library), @@ -4343,7 +4343,7 @@ $(_doc_external("Mat/MatIsHermitianTranspose")) function MatIsHermitianTranspose(petsclib::PetscLibType, A::PetscMat, B::PetscMat, tol::PetscReal) end @for_petsc function MatIsHermitianTranspose(petsclib::$UnionPetscLib, A::PetscMat, B::PetscMat, tol::$PetscReal ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:MatIsHermitianTranspose, $petsc_library), @@ -4419,7 +4419,7 @@ $(_doc_external("Mat/MatEqual")) function MatEqual(petsclib::PetscLibType, A::PetscMat, B::PetscMat) end @for_petsc function MatEqual(petsclib::$UnionPetscLib, A::PetscMat, B::PetscMat ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:MatEqual, $petsc_library), @@ -4593,7 +4593,7 @@ $(_doc_external("Mat/MatAssembled")) function MatAssembled(petsclib::PetscLibType, mat::PetscMat) end @for_petsc function MatAssembled(petsclib::$UnionPetscLib, mat::PetscMat ) - assembled_ = Ref{PetscBool}() + assembled_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:MatAssembled, $petsc_library), @@ -4748,7 +4748,7 @@ $(_doc_external("Mat/MatGetOption")) function MatGetOption(petsclib::PetscLibType, mat::PetscMat, op::MatOption) end @for_petsc function MatGetOption(petsclib::$UnionPetscLib, mat::PetscMat, op::MatOption ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:MatGetOption, $petsc_library), @@ -6244,7 +6244,7 @@ function MatGetRowIJ(petsclib::PetscLibType, mat::PetscMat, shift::PetscInt, sym n_ = Ref{$PetscInt}() ia_ = Ref{Ptr{$PetscInt}}(C_NULL) ja_ = Ref{Ptr{$PetscInt}}(C_NULL) - done_ = Ref{PetscBool}() + done_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:MatGetRowIJ, $petsc_library), @@ -6304,7 +6304,7 @@ function MatGetColumnIJ(petsclib::PetscLibType, mat::PetscMat, shift::PetscInt, n_ = Ref{$PetscInt}() ia_ = Ref{Ptr{$PetscInt}}(C_NULL) ja_ = Ref{Ptr{$PetscInt}}(C_NULL) - done_ = Ref{PetscBool}() + done_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:MatGetColumnIJ, $petsc_library), @@ -6364,7 +6364,7 @@ function MatRestoreRowIJ(petsclib::PetscLibType, mat::PetscMat, shift::PetscInt, n_ = Ref{$PetscInt}() ia_ = Ref{Ptr{$PetscInt}}(isempty(ia) ? C_NULL : pointer(ia)) ja_ = Ref{Ptr{$PetscInt}}(isempty(ja) ? C_NULL : pointer(ja)) - done_ = Ref{PetscBool}() + done_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:MatRestoreRowIJ, $petsc_library), @@ -6410,7 +6410,7 @@ function MatRestoreColumnIJ(petsclib::PetscLibType, mat::PetscMat, shift::PetscI n_ = Ref{$PetscInt}() ia_ = Ref{Ptr{$PetscInt}}(isempty(ia) ? C_NULL : pointer(ia)) ja_ = Ref{Ptr{$PetscInt}}(isempty(ja) ? C_NULL : pointer(ja)) - done_ = Ref{PetscBool}() + done_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:MatRestoreColumnIJ, $petsc_library), @@ -7219,7 +7219,7 @@ $(_doc_external("Mat/MatIsSymmetric")) function MatIsSymmetric(petsclib::PetscLibType, A::PetscMat, tol::PetscReal) end @for_petsc function MatIsSymmetric(petsclib::$UnionPetscLib, A::PetscMat, tol::$PetscReal ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:MatIsSymmetric, $petsc_library), @@ -7257,7 +7257,7 @@ $(_doc_external("Mat/MatIsHermitian")) function MatIsHermitian(petsclib::PetscLibType, A::PetscMat, tol::PetscReal) end @for_petsc function MatIsHermitian(petsclib::$UnionPetscLib, A::PetscMat, tol::$PetscScalar ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:MatIsHermitian, $petsc_library), @@ -7294,8 +7294,8 @@ $(_doc_external("Mat/MatIsSymmetricKnown")) function MatIsSymmetricKnown(petsclib::PetscLibType, A::PetscMat) end @for_petsc function MatIsSymmetricKnown(petsclib::$UnionPetscLib, A::PetscMat ) - set_ = Ref{PetscBool}() - flg_ = Ref{PetscBool}() + set_ = Ref{PetscBool}(PETSC_FALSE) + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:MatIsSymmetricKnown, $petsc_library), @@ -7333,8 +7333,8 @@ $(_doc_external("Mat/MatIsSPDKnown")) function MatIsSPDKnown(petsclib::PetscLibType, A::PetscMat) end @for_petsc function MatIsSPDKnown(petsclib::$UnionPetscLib, A::PetscMat ) - set_ = Ref{PetscBool}() - flg_ = Ref{PetscBool}() + set_ = Ref{PetscBool}(PETSC_FALSE) + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:MatIsSPDKnown, $petsc_library), @@ -7372,8 +7372,8 @@ $(_doc_external("Mat/MatIsHermitianKnown")) function MatIsHermitianKnown(petsclib::PetscLibType, A::PetscMat) end @for_petsc function MatIsHermitianKnown(petsclib::$UnionPetscLib, A::PetscMat ) - set_ = Ref{PetscBool}() - flg_ = Ref{PetscBool}() + set_ = Ref{PetscBool}(PETSC_FALSE) + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:MatIsHermitianKnown, $petsc_library), @@ -7410,7 +7410,7 @@ $(_doc_external("Mat/MatIsStructurallySymmetric")) function MatIsStructurallySymmetric(petsclib::PetscLibType, A::PetscMat) end @for_petsc function MatIsStructurallySymmetric(petsclib::$UnionPetscLib, A::PetscMat ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:MatIsStructurallySymmetric, $petsc_library), @@ -7447,8 +7447,8 @@ $(_doc_external("Mat/MatIsStructurallySymmetricKnown")) function MatIsStructurallySymmetricKnown(petsclib::PetscLibType, A::PetscMat) end @for_petsc function MatIsStructurallySymmetricKnown(petsclib::$UnionPetscLib, A::PetscMat ) - set_ = Ref{PetscBool}() - flg_ = Ref{PetscBool}() + set_ = Ref{PetscBool}(PETSC_FALSE) + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:MatIsStructurallySymmetricKnown, $petsc_library), @@ -8676,7 +8676,7 @@ $(_doc_external("Mat/MatHasOperation")) function MatHasOperation(petsclib::PetscLibType, mat::PetscMat, op::MatOperation) end @for_petsc function MatHasOperation(petsclib::$UnionPetscLib, mat::PetscMat, op::MatOperation ) - has_ = Ref{PetscBool}() + has_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:MatHasOperation, $petsc_library), @@ -8712,7 +8712,7 @@ $(_doc_external("Mat/MatHasCongruentLayouts")) function MatHasCongruentLayouts(petsclib::PetscLibType, mat::PetscMat) end @for_petsc function MatHasCongruentLayouts(petsclib::$UnionPetscLib, mat::PetscMat ) - cong_ = Ref{PetscBool}() + cong_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:MatHasCongruentLayouts, $petsc_library), @@ -10554,7 +10554,7 @@ $(_doc_external("Mat/MatShellTestMult")) function MatShellTestMult(petsclib::PetscLibType, mat::PetscMat, f::external, base::PetscVec, ctx::Cvoid) end @for_petsc function MatShellTestMult(petsclib::$UnionPetscLib, mat::PetscMat, f::external, base::PetscVec, ctx::Cvoid ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:MatShellTestMult, $petsc_library), @@ -10596,7 +10596,7 @@ $(_doc_external("Mat/MatShellTestMultTranspose")) function MatShellTestMultTranspose(petsclib::PetscLibType, mat::PetscMat, f::external, base::PetscVec, ctx::Cvoid) end @for_petsc function MatShellTestMultTranspose(petsclib::$UnionPetscLib, mat::PetscMat, f::external, base::PetscVec, ctx::Cvoid ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:MatShellTestMultTranspose, $petsc_library), @@ -10630,7 +10630,7 @@ $(_doc_external("Mat/MatIsShell")) function MatIsShell(petsclib::PetscLibType, mat::PetscMat) end @for_petsc function MatIsShell(petsclib::$UnionPetscLib, mat::PetscMat ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:MatIsShell, $petsc_library), @@ -10779,7 +10779,7 @@ $(_doc_external("Mat/MatISGetAllowRepeated")) function MatISGetAllowRepeated(petsclib::PetscLibType, A::PetscMat) end @for_petsc function MatISGetAllowRepeated(petsclib::$UnionPetscLib, A::PetscMat ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:MatISGetAllowRepeated, $petsc_library), @@ -13948,7 +13948,7 @@ $(_doc_external("Mat/MatKAIJGetScaledIdentity")) function MatKAIJGetScaledIdentity(petsclib::PetscLibType, A::PetscMat) end @for_petsc function MatKAIJGetScaledIdentity(petsclib::$UnionPetscLib, A::PetscMat ) - identity_ = Ref{PetscBool}() + identity_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:MatKAIJGetScaledIdentity, $petsc_library), @@ -16474,7 +16474,7 @@ $(_doc_external("Mat/MatSTRUMPACKGetColPerm")) function MatSTRUMPACKGetColPerm(petsclib::PetscLibType, F::PetscMat) end @for_petsc function MatSTRUMPACKGetColPerm(petsclib::$UnionPetscLib, F::PetscMat ) - cperm_ = Ref{PetscBool}() + cperm_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:MatSTRUMPACKGetColPerm, $petsc_library), @@ -16547,7 +16547,7 @@ $(_doc_external("Mat/MatSTRUMPACKGetGPU")) function MatSTRUMPACKGetGPU(petsclib::PetscLibType, F::PetscMat) end @for_petsc function MatSTRUMPACKGetGPU(petsclib::$UnionPetscLib, F::PetscMat ) - gpu_ = Ref{PetscBool}() + gpu_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:MatSTRUMPACKGetGPU, $petsc_library), @@ -19612,7 +19612,7 @@ $(_doc_external("Mat/MatBoundToCPU")) function MatBoundToCPU(petsclib::PetscLibType, A::PetscMat) end @for_petsc function MatBoundToCPU(petsclib::$UnionPetscLib, A::PetscMat ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:MatBoundToCPU, $petsc_library), @@ -19795,7 +19795,7 @@ $(_doc_external("Mat/MatGetBindingPropagates")) function MatGetBindingPropagates(petsclib::PetscLibType, A::PetscMat) end @for_petsc function MatGetBindingPropagates(petsclib::$UnionPetscLib, A::PetscMat ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:MatGetBindingPropagates, $petsc_library), @@ -20112,7 +20112,7 @@ $(_doc_external("Mat/MatMultEqual")) function MatMultEqual(petsclib::PetscLibType, A::PetscMat, B::PetscMat, n::PetscInt) end @for_petsc function MatMultEqual(petsclib::$UnionPetscLib, A::PetscMat, B::PetscMat, n::$PetscInt ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:MatMultEqual, $petsc_library), @@ -20150,7 +20150,7 @@ $(_doc_external("Mat/MatMultAddEqual")) function MatMultAddEqual(petsclib::PetscLibType, A::PetscMat, B::PetscMat, n::PetscInt) end @for_petsc function MatMultAddEqual(petsclib::$UnionPetscLib, A::PetscMat, B::PetscMat, n::$PetscInt ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:MatMultAddEqual, $petsc_library), @@ -20188,7 +20188,7 @@ $(_doc_external("Mat/MatMultTransposeEqual")) function MatMultTransposeEqual(petsclib::PetscLibType, A::PetscMat, B::PetscMat, n::PetscInt) end @for_petsc function MatMultTransposeEqual(petsclib::$UnionPetscLib, A::PetscMat, B::PetscMat, n::$PetscInt ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:MatMultTransposeEqual, $petsc_library), @@ -20226,7 +20226,7 @@ $(_doc_external("Mat/MatMultTransposeAddEqual")) function MatMultTransposeAddEqual(petsclib::PetscLibType, A::PetscMat, B::PetscMat, n::PetscInt) end @for_petsc function MatMultTransposeAddEqual(petsclib::$UnionPetscLib, A::PetscMat, B::PetscMat, n::$PetscInt ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:MatMultTransposeAddEqual, $petsc_library), @@ -20264,7 +20264,7 @@ $(_doc_external("Mat/MatMultHermitianTransposeEqual")) function MatMultHermitianTransposeEqual(petsclib::PetscLibType, A::PetscMat, B::PetscMat, n::PetscInt) end @for_petsc function MatMultHermitianTransposeEqual(petsclib::$UnionPetscLib, A::PetscMat, B::PetscMat, n::$PetscInt ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:MatMultHermitianTransposeEqual, $petsc_library), @@ -20302,7 +20302,7 @@ $(_doc_external("Mat/MatMultHermitianTransposeAddEqual")) function MatMultHermitianTransposeAddEqual(petsclib::PetscLibType, A::PetscMat, B::PetscMat, n::PetscInt) end @for_petsc function MatMultHermitianTransposeAddEqual(petsclib::$UnionPetscLib, A::PetscMat, B::PetscMat, n::$PetscInt ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:MatMultHermitianTransposeAddEqual, $petsc_library), @@ -20341,7 +20341,7 @@ $(_doc_external("Mat/MatMatMultEqual")) function MatMatMultEqual(petsclib::PetscLibType, A::PetscMat, B::PetscMat, C::PetscMat, n::PetscInt) end @for_petsc function MatMatMultEqual(petsclib::$UnionPetscLib, A::PetscMat, B::PetscMat, C::PetscMat, n::$PetscInt ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:MatMatMultEqual, $petsc_library), @@ -20380,7 +20380,7 @@ $(_doc_external("Mat/MatTransposeMatMultEqual")) function MatTransposeMatMultEqual(petsclib::PetscLibType, A::PetscMat, B::PetscMat, C::PetscMat, n::PetscInt) end @for_petsc function MatTransposeMatMultEqual(petsclib::$UnionPetscLib, A::PetscMat, B::PetscMat, C::PetscMat, n::$PetscInt ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:MatTransposeMatMultEqual, $petsc_library), @@ -20419,7 +20419,7 @@ $(_doc_external("Mat/MatMatTransposeMultEqual")) function MatMatTransposeMultEqual(petsclib::PetscLibType, A::PetscMat, B::PetscMat, C::PetscMat, n::PetscInt) end @for_petsc function MatMatTransposeMultEqual(petsclib::$UnionPetscLib, A::PetscMat, B::PetscMat, C::PetscMat, n::$PetscInt ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:MatMatTransposeMultEqual, $petsc_library), @@ -20458,7 +20458,7 @@ $(_doc_external("Mat/MatPtAPMultEqual")) function MatPtAPMultEqual(petsclib::PetscLibType, A::PetscMat, B::PetscMat, C::PetscMat, n::PetscInt) end @for_petsc function MatPtAPMultEqual(petsclib::$UnionPetscLib, A::PetscMat, B::PetscMat, C::PetscMat, n::$PetscInt ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:MatPtAPMultEqual, $petsc_library), @@ -20497,7 +20497,7 @@ $(_doc_external("Mat/MatRARtMultEqual")) function MatRARtMultEqual(petsclib::PetscLibType, A::PetscMat, B::PetscMat, C::PetscMat, n::PetscInt) end @for_petsc function MatRARtMultEqual(petsclib::$UnionPetscLib, A::PetscMat, B::PetscMat, C::PetscMat, n::$PetscInt ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:MatRARtMultEqual, $petsc_library), @@ -20534,7 +20534,7 @@ $(_doc_external("Mat/MatIsLinear")) function MatIsLinear(petsclib::PetscLibType, A::PetscMat, n::PetscInt) end @for_petsc function MatIsLinear(petsclib::$UnionPetscLib, A::PetscMat, n::$PetscInt ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:MatIsLinear, $petsc_library), @@ -21250,7 +21250,7 @@ $(_doc_external("Ksp/MatLMVMIsAllocated")) function MatLMVMIsAllocated(petsclib::PetscLibType, B::PetscMat) end @for_petsc function MatLMVMIsAllocated(petsclib::$UnionPetscLib, B::PetscMat ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:MatLMVMIsAllocated, $petsc_library), @@ -22922,7 +22922,7 @@ $(_doc_external("Snes/MatSNESMFGetReuseBase")) function MatSNESMFGetReuseBase(petsclib::PetscLibType, J::PetscMat) end @for_petsc function MatSNESMFGetReuseBase(petsclib::$UnionPetscLib, J::PetscMat ) - use_ = Ref{PetscBool}() + use_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:MatSNESMFGetReuseBase, $petsc_library), diff --git a/src/autowrapped/Mataddons_wrappers.jl b/src/autowrapped/Mataddons_wrappers.jl index f05e88191..14210142b 100644 --- a/src/autowrapped/Mataddons_wrappers.jl +++ b/src/autowrapped/Mataddons_wrappers.jl @@ -1589,7 +1589,7 @@ $(_doc_external("Mat/MatPartitioningGetUseEdgeWeights")) function MatPartitioningGetUseEdgeWeights(petsclib::PetscLibType, part::MatPartitioning) end @for_petsc function MatPartitioningGetUseEdgeWeights(petsclib::$UnionPetscLib, part::MatPartitioning ) - use_edge_weights_ = Ref{PetscBool}() + use_edge_weights_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:MatPartitioningGetUseEdgeWeights, $petsc_library), @@ -2750,7 +2750,7 @@ $(_doc_external("Mat/MatNullSpaceGetVecs")) function MatNullSpaceGetVecs(petsclib::PetscLibType, sp::MatNullSpace, vecs::Vector{PetscVec}) end @for_petsc function MatNullSpaceGetVecs(petsclib::$UnionPetscLib, sp::MatNullSpace, vecs::Vector{PetscVec} ) - has_const_ = Ref{PetscBool}() + has_const_ = Ref{PetscBool}(PETSC_FALSE) n_ = Ref{$PetscInt}() vecs_ = Ref(pointer(vecs)) @@ -2963,7 +2963,7 @@ $(_doc_external("Mat/MatNullSpaceTest")) function MatNullSpaceTest(petsclib::PetscLibType, sp::MatNullSpace, mat::PetscMat) end @for_petsc function MatNullSpaceTest(petsclib::$UnionPetscLib, sp::MatNullSpace, mat::PetscMat ) - isNull_ = Ref{PetscBool}() + isNull_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:MatNullSpaceTest, $petsc_library), diff --git a/src/autowrapped/PC_wrappers.jl b/src/autowrapped/PC_wrappers.jl index 989fa9ece..91fa552c7 100644 --- a/src/autowrapped/PC_wrappers.jl +++ b/src/autowrapped/PC_wrappers.jl @@ -332,7 +332,7 @@ $(_doc_external("Ksp/PCGetDiagonalScale")) function PCGetDiagonalScale(petsclib::PetscLibType, pc::PC) end @for_petsc function PCGetDiagonalScale(petsclib::$UnionPetscLib, pc::PC ) - flag_ = Ref{PetscBool}() + flag_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PCGetDiagonalScale, $petsc_library), @@ -539,7 +539,7 @@ $(_doc_external("Ksp/PCGetUseAmat")) function PCGetUseAmat(petsclib::PetscLibType, pc::PC) end @for_petsc function PCGetUseAmat(petsclib::$UnionPetscLib, pc::PC ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PCGetUseAmat, $petsc_library), @@ -889,7 +889,7 @@ $(_doc_external("Ksp/PCApplyTransposeExists")) function PCApplyTransposeExists(petsclib::PetscLibType, pc::PC) end @for_petsc function PCApplyTransposeExists(petsclib::$UnionPetscLib, pc::PC ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PCApplyTransposeExists, $petsc_library), @@ -1002,7 +1002,7 @@ $(_doc_external("Ksp/PCApplyRichardsonExists")) function PCApplyRichardsonExists(petsclib::PetscLibType, pc::PC) end @for_petsc function PCApplyRichardsonExists(petsclib::$UnionPetscLib, pc::PC ) - exists_ = Ref{PetscBool}() + exists_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PCApplyRichardsonExists, $petsc_library), @@ -1390,7 +1390,7 @@ $(_doc_external("Ksp/PCGetReusePreconditioner")) function PCGetReusePreconditioner(petsclib::PetscLibType, pc::PC) end @for_petsc function PCGetReusePreconditioner(petsclib::$UnionPetscLib, pc::PC ) - flag_ = Ref{PetscBool}() + flag_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PCGetReusePreconditioner, $petsc_library), @@ -1468,8 +1468,8 @@ $(_doc_external("Ksp/PCGetOperatorsSet")) function PCGetOperatorsSet(petsclib::PetscLibType, pc::PC) end @for_petsc function PCGetOperatorsSet(petsclib::$UnionPetscLib, pc::PC ) - mat_ = Ref{PetscBool}() - pmat_ = Ref{PetscBool}() + mat_ = Ref{PetscBool}(PETSC_FALSE) + pmat_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PCGetOperatorsSet, $petsc_library), @@ -2648,7 +2648,7 @@ $(_doc_external("Ksp/PCASMGetDMSubdomains")) function PCASMGetDMSubdomains(petsclib::PetscLibType, pc::PC) end @for_petsc function PCASMGetDMSubdomains(petsclib::$UnionPetscLib, pc::PC ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PCASMGetDMSubdomains, $petsc_library), @@ -4242,7 +4242,7 @@ $(_doc_external("Ksp/PCMGGetAdaptInterpolation")) function PCMGGetAdaptInterpolation(petsclib::PetscLibType, pc::PC) end @for_petsc function PCMGGetAdaptInterpolation(petsclib::$UnionPetscLib, pc::PC ) - adapt_ = Ref{PetscBool}() + adapt_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PCMGGetAdaptInterpolation, $petsc_library), @@ -4313,7 +4313,7 @@ $(_doc_external("Ksp/PCMGGetAdaptCR")) function PCMGGetAdaptCR(petsclib::PetscLibType, pc::PC) end @for_petsc function PCMGGetAdaptCR(petsclib::$UnionPetscLib, pc::PC ) - cr_ = Ref{PetscBool}() + cr_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PCMGGetAdaptCR, $petsc_library), @@ -4774,7 +4774,7 @@ $(_doc_external("Ksp/PCTelescopeGetIgnoreDM")) function PCTelescopeGetIgnoreDM(petsclib::PetscLibType, pc::PC) end @for_petsc function PCTelescopeGetIgnoreDM(petsclib::$UnionPetscLib, pc::PC ) - v_ = Ref{PetscBool}() + v_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PCTelescopeGetIgnoreDM, $petsc_library), @@ -4811,7 +4811,7 @@ $(_doc_external("Ksp/PCTelescopeSetIgnoreDM")) function PCTelescopeSetIgnoreDM(petsclib::PetscLibType, pc::PC) end @for_petsc function PCTelescopeSetIgnoreDM(petsclib::$UnionPetscLib, pc::PC ) - v_ = Ref{PetscBool}() + v_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PCTelescopeSetIgnoreDM, $petsc_library), @@ -4848,7 +4848,7 @@ $(_doc_external("Ksp/PCTelescopeGetUseCoarseDM")) function PCTelescopeGetUseCoarseDM(petsclib::PetscLibType, pc::PC) end @for_petsc function PCTelescopeGetUseCoarseDM(petsclib::$UnionPetscLib, pc::PC ) - v_ = Ref{PetscBool}() + v_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PCTelescopeGetUseCoarseDM, $petsc_library), @@ -4885,7 +4885,7 @@ $(_doc_external("Ksp/PCTelescopeSetUseCoarseDM")) function PCTelescopeSetUseCoarseDM(petsclib::PetscLibType, pc::PC) end @for_petsc function PCTelescopeSetUseCoarseDM(petsclib::$UnionPetscLib, pc::PC ) - v_ = Ref{PetscBool}() + v_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PCTelescopeSetUseCoarseDM, $petsc_library), @@ -4922,7 +4922,7 @@ $(_doc_external("Ksp/PCTelescopeGetIgnoreKSPComputeOperators")) function PCTelescopeGetIgnoreKSPComputeOperators(petsclib::PetscLibType, pc::PC) end @for_petsc function PCTelescopeGetIgnoreKSPComputeOperators(petsclib::$UnionPetscLib, pc::PC ) - v_ = Ref{PetscBool}() + v_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PCTelescopeGetIgnoreKSPComputeOperators, $petsc_library), @@ -4959,7 +4959,7 @@ $(_doc_external("Ksp/PCTelescopeSetIgnoreKSPComputeOperators")) function PCTelescopeSetIgnoreKSPComputeOperators(petsclib::PetscLibType, pc::PC) end @for_petsc function PCTelescopeSetIgnoreKSPComputeOperators(petsclib::$UnionPetscLib, pc::PC ) - v_ = Ref{PetscBool}() + v_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PCTelescopeSetIgnoreKSPComputeOperators, $petsc_library), @@ -6138,7 +6138,7 @@ $(_doc_external("Ksp/PCEisenstatGetNoDiagonalScaling")) function PCEisenstatGetNoDiagonalScaling(petsclib::PetscLibType, pc::PC) end @for_petsc function PCEisenstatGetNoDiagonalScaling(petsclib::$UnionPetscLib, pc::PC ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PCEisenstatGetNoDiagonalScaling, $petsc_library), @@ -6209,7 +6209,7 @@ $(_doc_external("Ksp/PCJacobiGetUseAbs")) function PCJacobiGetUseAbs(petsclib::PetscLibType, pc::PC) end @for_petsc function PCJacobiGetUseAbs(petsclib::$UnionPetscLib, pc::PC ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PCJacobiGetUseAbs, $petsc_library), @@ -6353,7 +6353,7 @@ $(_doc_external("Ksp/PCJacobiGetFixDiagonal")) function PCJacobiGetFixDiagonal(petsclib::PetscLibType, pc::PC) end @for_petsc function PCJacobiGetFixDiagonal(petsclib::$UnionPetscLib, pc::PC ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PCJacobiGetFixDiagonal, $petsc_library), @@ -7270,7 +7270,7 @@ $(_doc_external("Ksp/PCFactorGetAllowDiagonalFill")) function PCFactorGetAllowDiagonalFill(petsclib::PetscLibType, pc::PC) end @for_petsc function PCFactorGetAllowDiagonalFill(petsclib::$UnionPetscLib, pc::PC ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PCFactorGetAllowDiagonalFill, $petsc_library), @@ -7483,7 +7483,7 @@ $(_doc_external("Ksp/PCFactorGetUseInPlace")) function PCFactorGetUseInPlace(petsclib::PetscLibType, pc::PC) end @for_petsc function PCFactorGetUseInPlace(petsclib::$UnionPetscLib, pc::PC ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PCFactorGetUseInPlace, $petsc_library), @@ -8938,7 +8938,7 @@ $(_doc_external("Ksp/PCHPDDMGetSTShareSubKSP")) function PCHPDDMGetSTShareSubKSP(petsclib::PetscLibType, pc::PC) end @for_petsc function PCHPDDMGetSTShareSubKSP(petsclib::$UnionPetscLib, pc::PC ) - share_ = Ref{PetscBool}() + share_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PCHPDDMGetSTShareSubKSP, $petsc_library), @@ -9043,7 +9043,7 @@ $(_doc_external("Ksp/PCPatchGetSaveOperators")) function PCPatchGetSaveOperators(petsclib::PetscLibType, pc::PC) end @for_petsc function PCPatchGetSaveOperators(petsclib::$UnionPetscLib, pc::PC ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PCPatchGetSaveOperators, $petsc_library), @@ -9087,7 +9087,7 @@ $(_doc_external("Ksp/PCPatchGetPrecomputeElementTensors")) function PCPatchGetPrecomputeElementTensors(petsclib::PetscLibType, pc::PC) end @for_petsc function PCPatchGetPrecomputeElementTensors(petsclib::$UnionPetscLib, pc::PC ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PCPatchGetPrecomputeElementTensors, $petsc_library), @@ -9131,7 +9131,7 @@ $(_doc_external("Ksp/PCPatchGetPartitionOfUnity")) function PCPatchGetPartitionOfUnity(petsclib::PetscLibType, pc::PC) end @for_petsc function PCPatchGetPartitionOfUnity(petsclib::$UnionPetscLib, pc::PC ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PCPatchGetPartitionOfUnity, $petsc_library), @@ -10421,7 +10421,7 @@ $(_doc_external("Ksp/PCFieldSplitGetDiagUseAmat")) function PCFieldSplitGetDiagUseAmat(petsclib::PetscLibType, pc::PC) end @for_petsc function PCFieldSplitGetDiagUseAmat(petsclib::$UnionPetscLib, pc::PC ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PCFieldSplitGetDiagUseAmat, $petsc_library), @@ -10494,7 +10494,7 @@ $(_doc_external("Ksp/PCFieldSplitGetOffDiagUseAmat")) function PCFieldSplitGetOffDiagUseAmat(petsclib::PetscLibType, pc::PC) end @for_petsc function PCFieldSplitGetOffDiagUseAmat(petsclib::$UnionPetscLib, pc::PC ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PCFieldSplitGetOffDiagUseAmat, $petsc_library), @@ -11260,7 +11260,7 @@ $(_doc_external("Ksp/PCFieldSplitGetDMSplits")) function PCFieldSplitGetDMSplits(petsclib::PetscLibType, pc::PC) end @for_petsc function PCFieldSplitGetDMSplits(petsclib::$UnionPetscLib, pc::PC ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PCFieldSplitGetDMSplits, $petsc_library), @@ -11296,7 +11296,7 @@ $(_doc_external("Ksp/PCFieldSplitGetDetectSaddlePoint")) function PCFieldSplitGetDetectSaddlePoint(petsclib::PetscLibType, pc::PC) end @for_petsc function PCFieldSplitGetDetectSaddlePoint(petsclib::$UnionPetscLib, pc::PC ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PCFieldSplitGetDetectSaddlePoint, $petsc_library), @@ -11335,7 +11335,7 @@ $(_doc_external("Ksp/PCFieldSplitSetDetectSaddlePoint")) function PCFieldSplitSetDetectSaddlePoint(petsclib::PetscLibType, pc::PC) end @for_petsc function PCFieldSplitSetDetectSaddlePoint(petsclib::$UnionPetscLib, pc::PC ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PCFieldSplitSetDetectSaddlePoint, $petsc_library), @@ -11835,7 +11835,7 @@ $(_doc_external("Ksp/PCGASMGetUseDMSubdomains")) function PCGASMGetUseDMSubdomains(petsclib::PetscLibType, pc::PC) end @for_petsc function PCGASMGetUseDMSubdomains(petsclib::$UnionPetscLib, pc::PC ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PCGASMGetUseDMSubdomains, $petsc_library), diff --git a/src/autowrapped/PetscDLLibrary_wrappers.jl b/src/autowrapped/PetscDLLibrary_wrappers.jl index f2d190551..ff6b8a006 100644 --- a/src/autowrapped/PetscDLLibrary_wrappers.jl +++ b/src/autowrapped/PetscDLLibrary_wrappers.jl @@ -50,7 +50,7 @@ $(_doc_external("Sys/PetscDLLibraryRetrieve")) function PetscDLLibraryRetrieve(petsclib::PetscLibType, comm::MPI_Comm, libname::String, lname::String, llen::Csize_t) end @for_petsc function PetscDLLibraryRetrieve(petsclib::$UnionPetscLib, comm::MPI_Comm, libname::String, lname::String, llen::Csize_t ) - found_ = Ref{PetscBool}() + found_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscDLLibraryRetrieve, $petsc_library), diff --git a/src/autowrapped/PetscDS_wrappers.jl b/src/autowrapped/PetscDS_wrappers.jl index 0ead6f15e..ff60cba03 100644 --- a/src/autowrapped/PetscDS_wrappers.jl +++ b/src/autowrapped/PetscDS_wrappers.jl @@ -540,7 +540,7 @@ $(_doc_external("Dm/PetscDSGetForceQuad")) function PetscDSGetForceQuad(petsclib::PetscLibType, ds::PetscDS) end @for_petsc function PetscDSGetForceQuad(petsclib::$UnionPetscLib, ds::PetscDS ) - forceQuad_ = Ref{PetscBool}() + forceQuad_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscDSGetForceQuad, $petsc_library), @@ -608,7 +608,7 @@ $(_doc_external("Dm/PetscDSIsCohesive")) function PetscDSIsCohesive(petsclib::PetscLibType, ds::PetscDS) end @for_petsc function PetscDSIsCohesive(petsclib::$UnionPetscLib, ds::PetscDS ) - isCohesive_ = Ref{PetscBool}() + isCohesive_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscDSIsCohesive, $petsc_library), @@ -681,7 +681,7 @@ $(_doc_external("Dm/PetscDSGetCohesive")) function PetscDSGetCohesive(petsclib::PetscLibType, ds::PetscDS, f::PetscInt) end @for_petsc function PetscDSGetCohesive(petsclib::$UnionPetscLib, ds::PetscDS, f::$PetscInt ) - isCohesive_ = Ref{PetscBool}() + isCohesive_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscDSGetCohesive, $petsc_library), @@ -1023,7 +1023,7 @@ $(_doc_external("Dm/PetscDSGetImplicit")) function PetscDSGetImplicit(petsclib::PetscLibType, prob::PetscDS, f::PetscInt) end @for_petsc function PetscDSGetImplicit(petsclib::$UnionPetscLib, prob::PetscDS, f::$PetscInt ) - implicit_ = Ref{PetscBool}() + implicit_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscDSGetImplicit, $petsc_library), @@ -1370,7 +1370,7 @@ $(_doc_external("Dm/PetscDSHasJacobian")) function PetscDSHasJacobian(petsclib::PetscLibType, ds::PetscDS) end @for_petsc function PetscDSHasJacobian(petsclib::$UnionPetscLib, ds::PetscDS ) - hasJac_ = Ref{PetscBool}() + hasJac_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscDSHasJacobian, $petsc_library), @@ -1514,7 +1514,7 @@ $(_doc_external("Dm/PetscDSHasJacobianPreconditioner")) function PetscDSHasJacobianPreconditioner(petsclib::PetscLibType, ds::PetscDS) end @for_petsc function PetscDSHasJacobianPreconditioner(petsclib::$UnionPetscLib, ds::PetscDS ) - hasJacPre_ = Ref{PetscBool}() + hasJacPre_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscDSHasJacobianPreconditioner, $petsc_library), @@ -1628,7 +1628,7 @@ $(_doc_external("Dm/PetscDSHasDynamicJacobian")) function PetscDSHasDynamicJacobian(petsclib::PetscLibType, ds::PetscDS) end @for_petsc function PetscDSHasDynamicJacobian(petsclib::$UnionPetscLib, ds::PetscDS ) - hasDynJac_ = Ref{PetscBool}() + hasDynJac_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscDSHasDynamicJacobian, $petsc_library), @@ -2012,7 +2012,7 @@ $(_doc_external("Dm/PetscDSHasBdJacobian")) function PetscDSHasBdJacobian(petsclib::PetscLibType, ds::PetscDS) end @for_petsc function PetscDSHasBdJacobian(petsclib::$UnionPetscLib, ds::PetscDS ) - hasBdJac_ = Ref{PetscBool}() + hasBdJac_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscDSHasBdJacobian, $petsc_library), @@ -2124,7 +2124,7 @@ $(_doc_external("Dm/PetscDSHasBdJacobianPreconditioner")) function PetscDSHasBdJacobianPreconditioner(petsclib::PetscLibType, ds::PetscDS) end @for_petsc function PetscDSHasBdJacobianPreconditioner(petsclib::$UnionPetscLib, ds::PetscDS ) - hasBdJacPre_ = Ref{PetscBool}() + hasBdJacPre_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscDSHasBdJacobianPreconditioner, $petsc_library), diff --git a/src/autowrapped/PetscDevice_wrappers.jl b/src/autowrapped/PetscDevice_wrappers.jl index b387bd8b4..1d10b3482 100644 --- a/src/autowrapped/PetscDevice_wrappers.jl +++ b/src/autowrapped/PetscDevice_wrappers.jl @@ -524,7 +524,7 @@ $(_doc_external("Sys/PetscDeviceContextQueryIdle")) function PetscDeviceContextQueryIdle(petsclib::PetscLibType, dctx::PetscDeviceContext) end @for_petsc function PetscDeviceContextQueryIdle(petsclib::$UnionPetscLib, dctx::PetscDeviceContext ) - idle_ = Ref{PetscBool}() + idle_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscDeviceContextQueryIdle, $petsc_library), diff --git a/src/autowrapped/PetscDraw_wrappers.jl b/src/autowrapped/PetscDraw_wrappers.jl index 98c756f41..01f9b3ed2 100644 --- a/src/autowrapped/PetscDraw_wrappers.jl +++ b/src/autowrapped/PetscDraw_wrappers.jl @@ -2730,7 +2730,7 @@ $(_doc_external("Sys/PetscDrawIsNull")) function PetscDrawIsNull(petsclib::PetscLibType, draw::PetscDraw) end @for_petsc function PetscDrawIsNull(petsclib::$UnionPetscLib, draw::PetscDraw ) - yes_ = Ref{PetscBool}() + yes_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscDrawIsNull, $petsc_library), diff --git a/src/autowrapped/PetscDualSpace_wrappers.jl b/src/autowrapped/PetscDualSpace_wrappers.jl index df3e54ee2..c9c5e1aa4 100644 --- a/src/autowrapped/PetscDualSpace_wrappers.jl +++ b/src/autowrapped/PetscDualSpace_wrappers.jl @@ -674,7 +674,7 @@ $(_doc_external("DM/PetscDualSpaceGetUniform")) function PetscDualSpaceGetUniform(petsclib::PetscLibType, sp::PetscDualSpace) end @for_petsc function PetscDualSpaceGetUniform(petsclib::$UnionPetscLib, sp::PetscDualSpace ) - uniform_ = Ref{PetscBool}() + uniform_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscDualSpaceGetUniform, $petsc_library), @@ -1184,7 +1184,7 @@ $(_doc_external("DM/PetscDualSpaceEqual")) function PetscDualSpaceEqual(petsclib::PetscLibType, A::PetscDualSpace, B::PetscDualSpace) end @for_petsc function PetscDualSpaceEqual(petsclib::$UnionPetscLib, A::PetscDualSpace, B::PetscDualSpace ) - equal_ = Ref{PetscBool}() + equal_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscDualSpaceEqual, $petsc_library), @@ -1803,7 +1803,7 @@ $(_doc_external("DM/PetscDualSpaceLagrangeGetContinuity")) function PetscDualSpaceLagrangeGetContinuity(petsclib::PetscLibType, sp::PetscDualSpace) end @for_petsc function PetscDualSpaceLagrangeGetContinuity(petsclib::$UnionPetscLib, sp::PetscDualSpace ) - continuous_ = Ref{PetscBool}() + continuous_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscDualSpaceLagrangeGetContinuity, $petsc_library), @@ -1874,7 +1874,7 @@ $(_doc_external("DM/PetscDualSpaceLagrangeGetTensor")) function PetscDualSpaceLagrangeGetTensor(petsclib::PetscLibType, sp::PetscDualSpace) end @for_petsc function PetscDualSpaceLagrangeGetTensor(petsclib::$UnionPetscLib, sp::PetscDualSpace ) - tensor_ = Ref{PetscBool}() + tensor_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscDualSpaceLagrangeGetTensor, $petsc_library), @@ -1942,7 +1942,7 @@ $(_doc_external("DM/PetscDualSpaceLagrangeGetTrimmed")) function PetscDualSpaceLagrangeGetTrimmed(petsclib::PetscLibType, sp::PetscDualSpace) end @for_petsc function PetscDualSpaceLagrangeGetTrimmed(petsclib::$UnionPetscLib, sp::PetscDualSpace ) - trimmed_ = Ref{PetscBool}() + trimmed_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscDualSpaceLagrangeGetTrimmed, $petsc_library), @@ -2016,7 +2016,7 @@ function PetscDualSpaceLagrangeGetNodeType(petsclib::PetscLibType, sp::PetscDual @for_petsc function PetscDualSpaceLagrangeGetNodeType(petsclib::$UnionPetscLib, sp::PetscDualSpace ) nodeType_ = Ref{PetscDTNodeType}() - boundary_ = Ref{PetscBool}() + boundary_ = Ref{PetscBool}(PETSC_FALSE) exponent_ = Ref{$PetscReal}() @chk ccall( @@ -2092,7 +2092,7 @@ $(_doc_external("DM/PetscDualSpaceLagrangeGetUseMoments")) function PetscDualSpaceLagrangeGetUseMoments(petsclib::PetscLibType, sp::PetscDualSpace) end @for_petsc function PetscDualSpaceLagrangeGetUseMoments(petsclib::$UnionPetscLib, sp::PetscDualSpace ) - useMoments_ = Ref{PetscBool}() + useMoments_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscDualSpaceLagrangeGetUseMoments, $petsc_library), @@ -2290,7 +2290,7 @@ $(_doc_external("DM/PetscDualSpaceSumGetConcatenate")) function PetscDualSpaceSumGetConcatenate(petsclib::PetscLibType, sp::PetscDualSpace) end @for_petsc function PetscDualSpaceSumGetConcatenate(petsclib::$UnionPetscLib, sp::PetscDualSpace ) - concatenate_ = Ref{PetscBool}() + concatenate_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscDualSpaceSumGetConcatenate, $petsc_library), @@ -2456,8 +2456,8 @@ $(_doc_external("DM/PetscDualSpaceSumGetInterleave")) function PetscDualSpaceSumGetInterleave(petsclib::PetscLibType, sp::PetscDualSpace) end @for_petsc function PetscDualSpaceSumGetInterleave(petsclib::$UnionPetscLib, sp::PetscDualSpace ) - interleave_basis_ = Ref{PetscBool}() - interleave_components_ = Ref{PetscBool}() + interleave_basis_ = Ref{PetscBool}(PETSC_FALSE) + interleave_components_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscDualSpaceSumGetInterleave, $petsc_library), diff --git a/src/autowrapped/PetscFE_wrappers.jl b/src/autowrapped/PetscFE_wrappers.jl index 0b21834a4..2c333ba32 100644 --- a/src/autowrapped/PetscFE_wrappers.jl +++ b/src/autowrapped/PetscFE_wrappers.jl @@ -2781,7 +2781,7 @@ $(_doc_external("DM/PetscQuadratureEqual")) function PetscQuadratureEqual(petsclib::PetscLibType, A::PetscQuadrature, B::PetscQuadrature) end @for_petsc function PetscQuadratureEqual(petsclib::$UnionPetscLib, A::PetscQuadrature, B::PetscQuadrature ) - equal_ = Ref{PetscBool}() + equal_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscQuadratureEqual, $petsc_library), @@ -3458,7 +3458,7 @@ $(_doc_external("DM/PetscWeakFormHasJacobian")) function PetscWeakFormHasJacobian(petsclib::PetscLibType, wf::PetscWeakForm) end @for_petsc function PetscWeakFormHasJacobian(petsclib::$UnionPetscLib, wf::PetscWeakForm ) - hasJac_ = Ref{PetscBool}() + hasJac_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscWeakFormHasJacobian, $petsc_library), @@ -3571,7 +3571,7 @@ $(_doc_external("DM/PetscWeakFormHasJacobianPreconditioner")) function PetscWeakFormHasJacobianPreconditioner(petsclib::PetscLibType, wf::PetscWeakForm) end @for_petsc function PetscWeakFormHasJacobianPreconditioner(petsclib::$UnionPetscLib, wf::PetscWeakForm ) - hasJacPre_ = Ref{PetscBool}() + hasJacPre_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscWeakFormHasJacobianPreconditioner, $petsc_library), @@ -3684,7 +3684,7 @@ $(_doc_external("DM/PetscWeakFormHasBdJacobian")) function PetscWeakFormHasBdJacobian(petsclib::PetscLibType, wf::PetscWeakForm) end @for_petsc function PetscWeakFormHasBdJacobian(petsclib::$UnionPetscLib, wf::PetscWeakForm ) - hasJac_ = Ref{PetscBool}() + hasJac_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscWeakFormHasBdJacobian, $petsc_library), @@ -3793,7 +3793,7 @@ $(_doc_external("DM/PetscWeakFormHasBdJacobianPreconditioner")) function PetscWeakFormHasBdJacobianPreconditioner(petsclib::PetscLibType, wf::PetscWeakForm) end @for_petsc function PetscWeakFormHasBdJacobianPreconditioner(petsclib::$UnionPetscLib, wf::PetscWeakForm ) - hasJacPre_ = Ref{PetscBool}() + hasJacPre_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscWeakFormHasBdJacobianPreconditioner, $petsc_library), @@ -3902,7 +3902,7 @@ $(_doc_external("DM/PetscWeakFormHasDynamicJacobian")) function PetscWeakFormHasDynamicJacobian(petsclib::PetscLibType, wf::PetscWeakForm) end @for_petsc function PetscWeakFormHasDynamicJacobian(petsclib::$UnionPetscLib, wf::PetscWeakForm ) - hasDynJac_ = Ref{PetscBool}() + hasDynJac_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscWeakFormHasDynamicJacobian, $petsc_library), diff --git a/src/autowrapped/PetscFV_wrappers.jl b/src/autowrapped/PetscFV_wrappers.jl index a27051042..2954e2cb9 100644 --- a/src/autowrapped/PetscFV_wrappers.jl +++ b/src/autowrapped/PetscFV_wrappers.jl @@ -676,7 +676,7 @@ $(_doc_external("DM/PetscFVGetComputeGradients")) function PetscFVGetComputeGradients(petsclib::PetscLibType, fvm::PetscFV) end @for_petsc function PetscFVGetComputeGradients(petsclib::$UnionPetscLib, fvm::PetscFV ) - computeGradients_ = Ref{PetscBool}() + computeGradients_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscFVGetComputeGradients, $petsc_library), diff --git a/src/autowrapped/PetscIntStack_wrappers.jl b/src/autowrapped/PetscIntStack_wrappers.jl index c0af47695..baab9b03d 100644 --- a/src/autowrapped/PetscIntStack_wrappers.jl +++ b/src/autowrapped/PetscIntStack_wrappers.jl @@ -52,7 +52,7 @@ $(_doc_external("Sys/PetscIntStackEmpty")) function PetscIntStackEmpty(petsclib::PetscLibType, stack::PetscIntStack) end @for_petsc function PetscIntStackEmpty(petsclib::$UnionPetscLib, stack::$PetscIntStack ) - empty_ = Ref{PetscBool}() + empty_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscIntStackEmpty, $petsc_library), diff --git a/src/autowrapped/PetscLayout_wrappers.jl b/src/autowrapped/PetscLayout_wrappers.jl index 87784cdc3..aece17124 100644 --- a/src/autowrapped/PetscLayout_wrappers.jl +++ b/src/autowrapped/PetscLayout_wrappers.jl @@ -603,7 +603,7 @@ $(_doc_external("Vec/PetscLayoutCompare")) function PetscLayoutCompare(petsclib::PetscLibType, mapa::PetscLayout, mapb::PetscLayout) end @for_petsc function PetscLayoutCompare(petsclib::$UnionPetscLib, mapa::PetscLayout, mapb::PetscLayout ) - congruent_ = Ref{PetscBool}() + congruent_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscLayoutCompare, $petsc_library), diff --git a/src/autowrapped/PetscLog_wrappers.jl b/src/autowrapped/PetscLog_wrappers.jl index e9ebcbb07..147206f52 100644 --- a/src/autowrapped/PetscLog_wrappers.jl +++ b/src/autowrapped/PetscLog_wrappers.jl @@ -950,7 +950,7 @@ $(_doc_external("Sys/PetscLogHandlerStageGetVisible")) function PetscLogHandlerStageGetVisible(petsclib::PetscLibType, handler::PetscLogHandler, stage::PetscLogStage) end @for_petsc function PetscLogHandlerStageGetVisible(petsclib::$UnionPetscLib, handler::PetscLogHandler, stage::PetscLogStage ) - isVisible_ = Ref{PetscBool}() + isVisible_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscLogHandlerStageGetVisible, $petsc_library), @@ -1385,7 +1385,7 @@ $(_doc_external("Sys/PetscLogStateStageGetActive")) function PetscLogStateStageGetActive(petsclib::PetscLibType, state::PetscLogState, stage::PetscLogStage) end @for_petsc function PetscLogStateStageGetActive(petsclib::$UnionPetscLib, state::PetscLogState, stage::PetscLogStage ) - isActive_ = Ref{PetscBool}() + isActive_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscLogStateStageGetActive, $petsc_library), @@ -1562,7 +1562,7 @@ $(_doc_external("Sys/PetscLogStateEventGetActive")) function PetscLogStateEventGetActive(petsclib::PetscLibType, state::PetscLogState, stage::PetscLogStage, event::PetscLogEvent) end @for_petsc function PetscLogStateEventGetActive(petsclib::$UnionPetscLib, state::PetscLogState, stage::PetscLogStage, event::PetscLogEvent ) - isActive_ = Ref{PetscBool}() + isActive_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscLogStateEventGetActive, $petsc_library), diff --git a/src/autowrapped/PetscObject_wrappers.jl b/src/autowrapped/PetscObject_wrappers.jl index df8fa854c..31207b0f1 100644 --- a/src/autowrapped/PetscObject_wrappers.jl +++ b/src/autowrapped/PetscObject_wrappers.jl @@ -708,7 +708,7 @@ $(_doc_external("Sys/PetscObjectHasFunction")) function PetscObjectHasFunction(petsclib::PetscLibType, obj::PetscObject, name::String) end @for_petsc function PetscObjectHasFunction(petsclib::$UnionPetscLib, obj::PetscObject, name::String ) - has_ = Ref{PetscBool}() + has_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscObjectHasFunction, $petsc_library), @@ -1015,7 +1015,7 @@ $(_doc_external("Sys/PetscObjectTypeCompare")) function PetscObjectTypeCompare(petsclib::PetscLibType, obj::PetscObject, type_name::String) end @for_petsc function PetscObjectTypeCompare(petsclib::$UnionPetscLib, obj::PetscObject, type_name::String ) - same_ = Ref{PetscBool}() + same_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscObjectTypeCompare, $petsc_library), @@ -1053,7 +1053,7 @@ $(_doc_external("Sys/PetscObjectObjectTypeCompare")) function PetscObjectObjectTypeCompare(petsclib::PetscLibType, obj1::PetscObject, obj2::PetscObject) end @for_petsc function PetscObjectObjectTypeCompare(petsclib::$UnionPetscLib, obj1::PetscObject, obj2::PetscObject ) - same_ = Ref{PetscBool}() + same_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscObjectObjectTypeCompare, $petsc_library), @@ -1090,7 +1090,7 @@ $(_doc_external("Sys/PetscObjectBaseTypeCompare")) function PetscObjectBaseTypeCompare(petsclib::PetscLibType, obj::PetscObject, type_name::String) end @for_petsc function PetscObjectBaseTypeCompare(petsclib::$UnionPetscLib, obj::PetscObject, type_name::String ) - same_ = Ref{PetscBool}() + same_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscObjectBaseTypeCompare, $petsc_library), @@ -1222,7 +1222,7 @@ $(_doc_external("Sys/PetscObjectCompareId")) function PetscObjectCompareId(petsclib::PetscLibType, obj::PetscObject, id::PetscObjectId) end @for_petsc function PetscObjectCompareId(petsclib::$UnionPetscLib, obj::PetscObject, id::PetscObjectId ) - eq_ = Ref{PetscBool}() + eq_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscObjectCompareId, $petsc_library), diff --git a/src/autowrapped/PetscOmpCtrl_wrappers.jl b/src/autowrapped/PetscOmpCtrl_wrappers.jl index 508b68b91..ce60ab871 100644 --- a/src/autowrapped/PetscOmpCtrl_wrappers.jl +++ b/src/autowrapped/PetscOmpCtrl_wrappers.jl @@ -88,7 +88,7 @@ $(_doc_external("Sys/PetscOmpCtrlGetOmpComms")) function PetscOmpCtrlGetOmpComms(petsclib::PetscLibType, ctrl::PetscOmpCtrl, omp_comm::MPI_Comm, omp_master_comm::MPI_Comm) end @for_petsc function PetscOmpCtrlGetOmpComms(petsclib::$UnionPetscLib, ctrl::PetscOmpCtrl, omp_comm::MPI_Comm, omp_master_comm::MPI_Comm ) - is_omp_master_ = Ref{PetscBool}() + is_omp_master_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscOmpCtrlGetOmpComms, $petsc_library), diff --git a/src/autowrapped/PetscOptions_addons_wrappers.jl b/src/autowrapped/PetscOptions_addons_wrappers.jl index e868f39bf..d22e17825 100644 --- a/src/autowrapped/PetscOptions_addons_wrappers.jl +++ b/src/autowrapped/PetscOptions_addons_wrappers.jl @@ -87,7 +87,7 @@ $(_doc_external("Sys/PetscOptionsHelpPrintedCheck")) function PetscOptionsHelpPrintedCheck(petsclib::PetscLibType, hp::PetscOptionsHelpPrCinted, pre::String, name::String) end @for_petsc function PetscOptionsHelpPrintedCheck(petsclib::$UnionPetscLib, hp::PetscOptionsHelpPrCinted, pre::String, name::String ) - found_ = Ref{PetscBool}() + found_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscOptionsHelpPrintedCheck, $petsc_library), diff --git a/src/autowrapped/PetscOptions_wrappers.jl b/src/autowrapped/PetscOptions_wrappers.jl index cdd52abbe..fc8b4456e 100644 --- a/src/autowrapped/PetscOptions_wrappers.jl +++ b/src/autowrapped/PetscOptions_wrappers.jl @@ -78,7 +78,7 @@ $(_doc_external("Sys/PetscOptionsGetCreateViewerOff")) function PetscOptionsGetCreateViewerOff(petsclib::PetscLibType) end @for_petsc function PetscOptionsGetCreateViewerOff(petsclib::$UnionPetscLib) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscOptionsGetCreateViewerOff, $petsc_library), @@ -128,7 +128,7 @@ function PetscOptionsCreateViewer(petsclib::PetscLibType, comm::MPI_Comm, option @for_petsc function PetscOptionsCreateViewer(petsclib::$UnionPetscLib, comm::MPI_Comm, options::Union{Ptr,PetscOptions}, pre::String, name::String) viewer_ = Ref{PetscViewer}() format_ = Ref{PetscViewerFormat}() - set_ = Ref{PetscBool}() + set_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscOptionsCreateViewer, $petsc_library), @@ -175,7 +175,7 @@ function PetscOptionsCreateViewers(petsclib::PetscLibType, comm::MPI_Comm, optio @for_petsc function PetscOptionsCreateViewers(petsclib::$UnionPetscLib, comm::MPI_Comm, options::PetscOptions, pre::String, name::String, n_max::$PetscInt ) viewers = Vector{PetscViewer}(undef, ni); # CHECK SIZE!! formats = Vector{PetscViewerFormat}(undef, ni); # CHECK SIZE!! - set_ = Ref{PetscBool}() + set_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscOptionsCreateViewers, $petsc_library), @@ -452,7 +452,7 @@ $(_doc_external("Sys/PetscOptionsValidKey")) function PetscOptionsValidKey(petsclib::PetscLibType, key::String) end @for_petsc function PetscOptionsValidKey(petsclib::$UnionPetscLib, key::String ) - valid_ = Ref{PetscBool}() + valid_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscOptionsValidKey, $petsc_library), @@ -913,7 +913,7 @@ function PetscOptionsFindPair(petsclib::PetscLibType, options::PetscOptions, pre @for_petsc function PetscOptionsFindPair(petsclib::$UnionPetscLib, options::PetscOptions, pre::String, name::String, value::String ) value_ = Ref(pointer(value)) - set_ = Ref{PetscBool}() + set_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscOptionsFindPair, $petsc_library), @@ -988,7 +988,7 @@ $(_doc_external("Sys/PetscOptionsHasHelp")) function PetscOptionsHasHelp(petsclib::PetscLibType, options::PetscOptions) end @for_petsc function PetscOptionsHasHelp(petsclib::$UnionPetscLib, options::PetscOptions ) - set_ = Ref{PetscBool}() + set_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscOptionsHasHelp, $petsc_library), @@ -1032,7 +1032,7 @@ $(_doc_external("Sys/PetscOptionsHasName")) function PetscOptionsHasName(petsclib::PetscLibType, options::PetscOptions, pre::String, name::String) end @for_petsc function PetscOptionsHasName(petsclib::$UnionPetscLib, options::PetscOptions, pre::String, name::String ) - set_ = Ref{PetscBool}() + set_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscOptionsHasName, $petsc_library), @@ -1104,7 +1104,7 @@ $(_doc_external("Sys/PetscOptionsUsed")) function PetscOptionsUsed(petsclib::PetscLibType, options::PetscOptions, name::String) end @for_petsc function PetscOptionsUsed(petsclib::$UnionPetscLib, options::PetscOptions, name::String ) - used_ = Ref{PetscBool}() + used_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscOptionsUsed, $petsc_library), @@ -1350,7 +1350,7 @@ $(_doc_external("Sys/PetscOptionsStringToBool")) function PetscOptionsStringToBool(petsclib::PetscLibType, value::String) end @for_petsc function PetscOptionsStringToBool(petsclib::$UnionPetscLib, value::String ) - a_ = Ref{PetscBool}() + a_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscOptionsStringToBool, $petsc_library), @@ -1464,8 +1464,8 @@ $(_doc_external("Sys/PetscOptionsGetBool")) function PetscOptionsGetBool(petsclib::PetscLibType, options::PetscOptions, pre::String, name::String) end @for_petsc function PetscOptionsGetBool(petsclib::$UnionPetscLib, options::PetscOptions, pre::String, name::String ) - ivalue_ = Ref{PetscBool}() - set_ = Ref{PetscBool}() + ivalue_ = Ref{PetscBool}(PETSC_FALSE) + set_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscOptionsGetBool, $petsc_library), @@ -1511,7 +1511,7 @@ $(_doc_external("Sys/PetscOptionsGetBool3")) function PetscOptionsGetBool3(petsclib::PetscLibType, options::PetscOptions, pre::String, name::String, ivalue::PetscBool3) end @for_petsc function PetscOptionsGetBool3(petsclib::$UnionPetscLib, options::PetscOptions, pre::String, name::String, ivalue::PetscBool3 ) - set_ = Ref{PetscBool}() + set_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscOptionsGetBool3, $petsc_library), @@ -1559,7 +1559,7 @@ function PetscOptionsGetEList(petsclib::PetscLibType, options::PetscOptions, pre @for_petsc function PetscOptionsGetEList(petsclib::$UnionPetscLib, options::PetscOptions, pre::String, opt::String, list::String, ntext::$PetscInt ) list_ = Ref(pointer(list)) value_ = Ref{$PetscInt}() - set_ = Ref{PetscBool}() + set_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscOptionsGetEList, $petsc_library), @@ -1607,7 +1607,7 @@ function PetscOptionsGetEnum(petsclib::PetscLibType, options::PetscOptions, pre: @for_petsc function PetscOptionsGetEnum(petsclib::$UnionPetscLib, options::PetscOptions, pre::String, opt::String, list::String, value::PetscEnum ) list_ = Ref(pointer(list)) - set_ = Ref{PetscBool}() + set_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscOptionsGetEnum, $petsc_library), @@ -1653,7 +1653,7 @@ function PetscOptionsGetInt(petsclib::PetscLibType, options::PetscOptions, pre:: @for_petsc function PetscOptionsGetInt(petsclib::$UnionPetscLib, options::PetscOptions, pre::String, name::String ) ivalue_ = Ref{$PetscInt}() - set_ = Ref{PetscBool}() + set_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscOptionsGetInt, $petsc_library), @@ -1699,7 +1699,7 @@ $(_doc_external("Sys/PetscOptionsGetMPIInt")) function PetscOptionsGetMPIInt(petsclib::PetscLibType, options::PetscOptions, pre::String, name::String, ivalue::PetscMPIInt) end @for_petsc function PetscOptionsGetMPIInt(petsclib::$UnionPetscLib, options::PetscOptions, pre::String, name::String, ivalue::PetscMPIInt ) - set_ = Ref{PetscBool}() + set_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscOptionsGetMPIInt, $petsc_library), @@ -1745,7 +1745,7 @@ function PetscOptionsGetReal(petsclib::PetscLibType, options::PetscOptions, pre: @for_petsc function PetscOptionsGetReal(petsclib::$UnionPetscLib, options::PetscOptions, pre::String, name::String ) dvalue_ = Ref{$PetscReal}() - set_ = Ref{PetscBool}() + set_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscOptionsGetReal, $petsc_library), @@ -1792,7 +1792,7 @@ function PetscOptionsGetScalar(petsclib::PetscLibType, options::PetscOptions, pr @for_petsc function PetscOptionsGetScalar(petsclib::$UnionPetscLib, options::PetscOptions, pre::String, name::String ) dvalue_ = Ref{$PetscScalar}() - set_ = Ref{PetscBool}() + set_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscOptionsGetScalar, $petsc_library), @@ -1838,7 +1838,7 @@ $(_doc_external("Sys/PetscOptionsGetString")) function PetscOptionsGetString(petsclib::PetscLibType, options::PetscOptions, pre::String, name::String) end @for_petsc function PetscOptionsGetString(petsclib::$UnionPetscLib, options::PetscOptions, pre::Union{Ptr,String}, name::String) - set_ = Ref{PetscBool}() + set_ = Ref{PetscBool}(PETSC_FALSE) val = Vector{UInt8}(undef, 256) @chk ccall( @@ -1893,7 +1893,7 @@ function PetscOptionsGetBoolArray(petsclib::PetscLibType, options::PetscOptions, @for_petsc function PetscOptionsGetBoolArray(petsclib::$UnionPetscLib, options::PetscOptions, pre::String, name::String ) dvalue = Vector{PetscBool}(undef, ni); # CHECK SIZE!! nmax_ = Ref{$PetscInt}() - set_ = Ref{PetscBool}() + set_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscOptionsGetBoolArray, $petsc_library), @@ -1942,7 +1942,7 @@ function PetscOptionsGetEnumArray(petsclib::PetscLibType, options::PetscOptions, @for_petsc function PetscOptionsGetEnumArray(petsclib::$UnionPetscLib, options::PetscOptions, pre::String, name::String, list::String, ivalue::Vector{PetscEnum} ) list_ = Ref(pointer(list)) nmax_ = Ref{$PetscInt}() - set_ = Ref{PetscBool}() + set_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscOptionsGetEnumArray, $petsc_library), @@ -1990,7 +1990,7 @@ function PetscOptionsGetIntArray(petsclib::PetscLibType, options::PetscOptions, @for_petsc function PetscOptionsGetIntArray(petsclib::$UnionPetscLib, options::PetscOptions, pre::String, name::String ) ivalue = Vector{$PetscInt}(undef, ni); # CHECK SIZE!! nmax_ = Ref{$PetscInt}() - set_ = Ref{PetscBool}() + set_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscOptionsGetIntArray, $petsc_library), @@ -2039,7 +2039,7 @@ function PetscOptionsGetRealArray(petsclib::PetscLibType, options::PetscOptions, @for_petsc function PetscOptionsGetRealArray(petsclib::$UnionPetscLib, options::PetscOptions, pre::String, name::String ) dvalue = Vector{$PetscReal}(undef, ni); # CHECK SIZE!! nmax_ = Ref{$PetscInt}() - set_ = Ref{PetscBool}() + set_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscOptionsGetRealArray, $petsc_library), @@ -2088,7 +2088,7 @@ function PetscOptionsGetScalarArray(petsclib::PetscLibType, options::PetscOption @for_petsc function PetscOptionsGetScalarArray(petsclib::$UnionPetscLib, options::PetscOptions, pre::String, name::String ) dvalue = Vector{$PetscScalar}(undef, ni); # CHECK SIZE!! nmax_ = Ref{$PetscInt}() - set_ = Ref{PetscBool}() + set_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscOptionsGetScalarArray, $petsc_library), @@ -2137,7 +2137,7 @@ function PetscOptionsGetStringArray(petsclib::PetscLibType, options::PetscOption @for_petsc function PetscOptionsGetStringArray(petsclib::$UnionPetscLib, options::PetscOptions, pre::String, name::String, strings::String ) strings_ = Ref(pointer(strings)) nmax_ = Ref{$PetscInt}() - set_ = Ref{PetscBool}() + set_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscOptionsGetStringArray, $petsc_library), @@ -2178,7 +2178,7 @@ $(_doc_external("Sys/PetscOptionsGetenv")) function PetscOptionsGetenv(petsclib::PetscLibType, comm::MPI_Comm, name::String, env::String, len::Csize_t) end @for_petsc function PetscOptionsGetenv(petsclib::$UnionPetscLib, comm::MPI_Comm, name::String, env::String, len::Csize_t ) - flag_ = Ref{PetscBool}() + flag_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscOptionsGetenv, $petsc_library), @@ -2201,7 +2201,7 @@ $(_doc_external("Vec/PetscOptionsGetVec")) function PetscOptionsGetVec(petsclib::PetscLibType, options::PetscOptions, prefix::String, key::String, v::PetscVec) end @for_petsc function PetscOptionsGetVec(petsclib::$UnionPetscLib, options::PetscOptions, prefix::String, key::String, v::PetscVec ) - set_ = Ref{PetscBool}() + set_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscOptionsGetVec, $petsc_library), diff --git a/src/autowrapped/PetscPartitioner_wrappers.jl b/src/autowrapped/PetscPartitioner_wrappers.jl index 6d1727540..7b5346847 100644 --- a/src/autowrapped/PetscPartitioner_wrappers.jl +++ b/src/autowrapped/PetscPartitioner_wrappers.jl @@ -518,7 +518,7 @@ $(_doc_external("Mat/PetscPartitionerShellGetRandom")) function PetscPartitionerShellGetRandom(petsclib::PetscLibType, part::PetscPartitioner) end @for_petsc function PetscPartitionerShellGetRandom(petsclib::$UnionPetscLib, part::PetscPartitioner ) - random_ = Ref{PetscBool}() + random_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscPartitionerShellGetRandom, $petsc_library), diff --git a/src/autowrapped/PetscSection_wrappers.jl b/src/autowrapped/PetscSection_wrappers.jl index 9cc4f8c29..6a66e874d 100644 --- a/src/autowrapped/PetscSection_wrappers.jl +++ b/src/autowrapped/PetscSection_wrappers.jl @@ -173,7 +173,7 @@ $(_doc_external("Vec/PetscSectionCompare")) function PetscSectionCompare(petsclib::PetscLibType, s1::PetscSection, s2::PetscSection) end @for_petsc function PetscSectionCompare(petsclib::$UnionPetscLib, s1::PetscSection, s2::PetscSection ) - congruent_ = Ref{PetscBool}() + congruent_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscSectionCompare, $petsc_library), @@ -695,7 +695,7 @@ $(_doc_external("Vec/PetscSectionGetPointMajor")) function PetscSectionGetPointMajor(petsclib::PetscLibType, s::PetscSection) end @for_petsc function PetscSectionGetPointMajor(petsclib::$UnionPetscLib, s::PetscSection ) - pm_ = Ref{PetscBool}() + pm_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscSectionGetPointMajor, $petsc_library), @@ -764,7 +764,7 @@ $(_doc_external("Vec/PetscSectionGetIncludesConstraints")) function PetscSectionGetIncludesConstraints(petsclib::PetscLibType, s::PetscSection) end @for_petsc function PetscSectionGetIncludesConstraints(petsclib::$UnionPetscLib, s::PetscSection ) - includesConstraints_ = Ref{PetscBool}() + includesConstraints_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscSectionGetIncludesConstraints, $petsc_library), @@ -2212,7 +2212,7 @@ $(_doc_external("Vec/PetscSectionHasConstraints")) function PetscSectionHasConstraints(petsclib::PetscLibType, s::PetscSection) end @for_petsc function PetscSectionHasConstraints(petsclib::$UnionPetscLib, s::PetscSection ) - hasConstraints_ = Ref{PetscBool}() + hasConstraints_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscSectionHasConstraints, $petsc_library), @@ -2935,7 +2935,7 @@ $(_doc_external("Vec/PetscSectionGetUseFieldOffsets")) function PetscSectionGetUseFieldOffsets(petsclib::PetscLibType, s::PetscSection) end @for_petsc function PetscSectionGetUseFieldOffsets(petsclib::$UnionPetscLib, s::PetscSection ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscSectionGetUseFieldOffsets, $petsc_library), diff --git a/src/autowrapped/PetscSpace_wrappers.jl b/src/autowrapped/PetscSpace_wrappers.jl index 23e6d53c8..e54b4eb7f 100644 --- a/src/autowrapped/PetscSpace_wrappers.jl +++ b/src/autowrapped/PetscSpace_wrappers.jl @@ -801,7 +801,7 @@ $(_doc_external("DM/PetscSpaceSumGetConcatenate")) function PetscSpaceSumGetConcatenate(petsclib::PetscLibType, sp::PetscSpace) end @for_petsc function PetscSpaceSumGetConcatenate(petsclib::$UnionPetscLib, sp::PetscSpace ) - concatenate_ = Ref{PetscBool}() + concatenate_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscSpaceSumGetConcatenate, $petsc_library), @@ -967,8 +967,8 @@ $(_doc_external("DM/PetscSpaceSumGetInterleave")) function PetscSpaceSumGetInterleave(petsclib::PetscLibType, sp::PetscSpace) end @for_petsc function PetscSpaceSumGetInterleave(petsclib::$UnionPetscLib, sp::PetscSpace ) - interleave_basis_ = Ref{PetscBool}() - interleave_components_ = Ref{PetscBool}() + interleave_basis_ = Ref{PetscBool}(PETSC_FALSE) + interleave_components_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscSpaceSumGetInterleave, $petsc_library), @@ -1232,7 +1232,7 @@ $(_doc_external("DM/PetscSpacePolynomialGetTensor")) function PetscSpacePolynomialGetTensor(petsclib::PetscLibType, sp::PetscSpace) end @for_petsc function PetscSpacePolynomialGetTensor(petsclib::$UnionPetscLib, sp::PetscSpace ) - tensor_ = Ref{PetscBool}() + tensor_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscSpacePolynomialGetTensor, $petsc_library), diff --git a/src/autowrapped/PetscViewer_wrappers.jl b/src/autowrapped/PetscViewer_wrappers.jl index 4f4a63bd1..1fe27cc43 100644 --- a/src/autowrapped/PetscViewer_wrappers.jl +++ b/src/autowrapped/PetscViewer_wrappers.jl @@ -779,7 +779,7 @@ $(_doc_external("Sys/PetscViewerReadable")) function PetscViewerReadable(petsclib::PetscLibType, viewer::PetscViewer) end @for_petsc function PetscViewerReadable(petsclib::$UnionPetscLib, viewer::PetscViewer ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscViewerReadable, $petsc_library), @@ -815,7 +815,7 @@ $(_doc_external("Sys/PetscViewerWritable")) function PetscViewerWritable(petsclib::PetscLibType, viewer::PetscViewer) end @for_petsc function PetscViewerWritable(petsclib::$UnionPetscLib, viewer::PetscViewer ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscViewerWritable, $petsc_library), @@ -1737,7 +1737,7 @@ $(_doc_external("Sys/PetscViewerVUGetVecSeen")) function PetscViewerVUGetVecSeen(petsclib::PetscLibType, viewer::PetscViewer) end @for_petsc function PetscViewerVUGetVecSeen(petsclib::$UnionPetscLib, viewer::PetscViewer ) - vecSeen_ = Ref{PetscBool}() + vecSeen_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscViewerVUGetVecSeen, $petsc_library), @@ -2017,7 +2017,7 @@ $(_doc_external("Sys/PetscViewerHDF5GetBaseDimension2")) function PetscViewerHDF5GetBaseDimension2(petsclib::PetscLibType, viewer::PetscViewer) end @for_petsc function PetscViewerHDF5GetBaseDimension2(petsclib::$UnionPetscLib, viewer::PetscViewer ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscViewerHDF5GetBaseDimension2, $petsc_library), @@ -2092,7 +2092,7 @@ $(_doc_external("Sys/PetscViewerHDF5GetSPOutput")) function PetscViewerHDF5GetSPOutput(petsclib::PetscLibType, viewer::PetscViewer) end @for_petsc function PetscViewerHDF5GetSPOutput(petsclib::$UnionPetscLib, viewer::PetscViewer ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscViewerHDF5GetSPOutput, $petsc_library), @@ -2163,7 +2163,7 @@ $(_doc_external("Sys/PetscViewerHDF5GetCollective")) function PetscViewerHDF5GetCollective(petsclib::PetscLibType, viewer::PetscViewer) end @for_petsc function PetscViewerHDF5GetCollective(petsclib::$UnionPetscLib, viewer::PetscViewer ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscViewerHDF5GetCollective, $petsc_library), @@ -2234,7 +2234,7 @@ $(_doc_external("Sys/PetscViewerHDF5GetDefaultTimestepping")) function PetscViewerHDF5GetDefaultTimestepping(petsclib::PetscLibType, viewer::PetscViewer) end @for_petsc function PetscViewerHDF5GetDefaultTimestepping(petsclib::$UnionPetscLib, viewer::PetscViewer ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscViewerHDF5GetDefaultTimestepping, $petsc_library), @@ -2305,7 +2305,7 @@ $(_doc_external("Sys/PetscViewerHDF5GetCompress")) function PetscViewerHDF5GetCompress(petsclib::PetscLibType, viewer::PetscViewer) end @for_petsc function PetscViewerHDF5GetCompress(petsclib::$UnionPetscLib, viewer::PetscViewer ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscViewerHDF5GetCompress, $petsc_library), @@ -2612,7 +2612,7 @@ $(_doc_external("Sys/PetscViewerHDF5IsTimestepping")) function PetscViewerHDF5IsTimestepping(petsclib::PetscLibType, viewer::PetscViewer) end @for_petsc function PetscViewerHDF5IsTimestepping(petsclib::$UnionPetscLib, viewer::PetscViewer ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscViewerHDF5IsTimestepping, $petsc_library), @@ -2896,7 +2896,7 @@ $(_doc_external("Sys/PetscViewerHDF5HasGroup")) function PetscViewerHDF5HasGroup(petsclib::PetscLibType, viewer::PetscViewer, path::String) end @for_petsc function PetscViewerHDF5HasGroup(petsclib::$UnionPetscLib, viewer::PetscViewer, path::String ) - has_ = Ref{PetscBool}() + has_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscViewerHDF5HasGroup, $petsc_library), @@ -2933,7 +2933,7 @@ $(_doc_external("Sys/PetscViewerHDF5HasDataset")) function PetscViewerHDF5HasDataset(petsclib::PetscLibType, viewer::PetscViewer, path::String) end @for_petsc function PetscViewerHDF5HasDataset(petsclib::$UnionPetscLib, viewer::PetscViewer, path::String ) - has_ = Ref{PetscBool}() + has_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscViewerHDF5HasDataset, $petsc_library), @@ -2970,7 +2970,7 @@ $(_doc_external("Sys/PetscViewerHDF5HasObject")) function PetscViewerHDF5HasObject(petsclib::PetscLibType, viewer::PetscViewer, obj::PetscObject) end @for_petsc function PetscViewerHDF5HasObject(petsclib::$UnionPetscLib, viewer::PetscViewer, obj::PetscObject ) - has_ = Ref{PetscBool}() + has_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscViewerHDF5HasObject, $petsc_library), @@ -3008,7 +3008,7 @@ $(_doc_external("Sys/PetscViewerHDF5HasAttribute")) function PetscViewerHDF5HasAttribute(petsclib::PetscLibType, viewer::PetscViewer, parent::String, name::String) end @for_petsc function PetscViewerHDF5HasAttribute(petsclib::$UnionPetscLib, viewer::PetscViewer, parent::String, name::String ) - has_ = Ref{PetscBool}() + has_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscViewerHDF5HasAttribute, $petsc_library), @@ -3046,7 +3046,7 @@ $(_doc_external("Sys/PetscViewerHDF5HasObjectAttribute")) function PetscViewerHDF5HasObjectAttribute(petsclib::PetscLibType, viewer::PetscViewer, obj::PetscObject, name::String) end @for_petsc function PetscViewerHDF5HasObjectAttribute(petsclib::$UnionPetscLib, viewer::PetscViewer, obj::PetscObject, name::String ) - has_ = Ref{PetscBool}() + has_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscViewerHDF5HasObjectAttribute, $petsc_library), @@ -3185,7 +3185,7 @@ function PetscViewerCGNSGetSolutionTime(petsclib::PetscLibType, viewer::PetscVie @for_petsc function PetscViewerCGNSGetSolutionTime(petsclib::$UnionPetscLib, viewer::PetscViewer ) time_ = Ref{$PetscReal}() - set_ = Ref{PetscBool}() + set_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscViewerCGNSGetSolutionTime, $petsc_library), @@ -3224,7 +3224,7 @@ function PetscViewerCGNSGetSolutionIteration(petsclib::PetscLibType, viewer::Pet @for_petsc function PetscViewerCGNSGetSolutionIteration(petsclib::$UnionPetscLib, viewer::PetscViewer ) iteration_ = Ref{$PetscInt}() - set_ = Ref{PetscBool}() + set_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscViewerCGNSGetSolutionIteration, $petsc_library), @@ -4066,7 +4066,7 @@ $(_doc_external("Sys/PetscViewerBinaryGetUseMPIIO")) function PetscViewerBinaryGetUseMPIIO(petsclib::PetscLibType, viewer::PetscViewer) end @for_petsc function PetscViewerBinaryGetUseMPIIO(petsclib::$UnionPetscLib, viewer::PetscViewer ) - use_ = Ref{PetscBool}() + use_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscViewerBinaryGetUseMPIIO, $petsc_library), @@ -4276,7 +4276,7 @@ $(_doc_external("Sys/PetscViewerBinaryGetSkipInfo")) function PetscViewerBinaryGetSkipInfo(petsclib::PetscLibType, viewer::PetscViewer) end @for_petsc function PetscViewerBinaryGetSkipInfo(petsclib::$UnionPetscLib, viewer::PetscViewer ) - skip_ = Ref{PetscBool}() + skip_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscViewerBinaryGetSkipInfo, $petsc_library), @@ -4349,7 +4349,7 @@ $(_doc_external("Sys/PetscViewerBinaryGetSkipOptions")) function PetscViewerBinaryGetSkipOptions(petsclib::PetscLibType, viewer::PetscViewer) end @for_petsc function PetscViewerBinaryGetSkipOptions(petsclib::$UnionPetscLib, viewer::PetscViewer ) - skip_ = Ref{PetscBool}() + skip_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscViewerBinaryGetSkipOptions, $petsc_library), @@ -4422,7 +4422,7 @@ $(_doc_external("Sys/PetscViewerBinaryGetSkipHeader")) function PetscViewerBinaryGetSkipHeader(petsclib::PetscLibType, viewer::PetscViewer) end @for_petsc function PetscViewerBinaryGetSkipHeader(petsclib::$UnionPetscLib, viewer::PetscViewer ) - skip_ = Ref{PetscBool}() + skip_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscViewerBinaryGetSkipHeader, $petsc_library), @@ -5140,7 +5140,7 @@ $(_doc_external("Sys/PetscViewerDrawGetHold")) function PetscViewerDrawGetHold(petsclib::PetscLibType, viewer::PetscViewer) end @for_petsc function PetscViewerDrawGetHold(petsclib::$UnionPetscLib, viewer::PetscViewer ) - hold_ = Ref{PetscBool}() + hold_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscViewerDrawGetHold, $petsc_library), @@ -6309,7 +6309,7 @@ $(_doc_external("Viewer/PetscViewerHDF5PathIsRelative")) function PetscViewerHDF5PathIsRelative(petsclib::PetscLibType, path::String, emptyIsRelative::PetscBool) end @for_petsc function PetscViewerHDF5PathIsRelative(petsclib::$UnionPetscLib, path::String, emptyIsRelative::PetscBool ) - has_ = Ref{PetscBool}() + has_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscViewerHDF5PathIsRelative, $petsc_library), diff --git a/src/autowrapped/SNESLineSearch_wrappers.jl b/src/autowrapped/SNESLineSearch_wrappers.jl index 5095132fa..b076a4730 100644 --- a/src/autowrapped/SNESLineSearch_wrappers.jl +++ b/src/autowrapped/SNESLineSearch_wrappers.jl @@ -403,7 +403,7 @@ $(_doc_external("SNES/SNESLineSearchPreCheck")) function SNESLineSearchPreCheck(petsclib::PetscLibType, linesearch::SNESLineSearch, X::PetscVec, Y::PetscVec) end @for_petsc function SNESLineSearchPreCheck(petsclib::$UnionPetscLib, linesearch::SNESLineSearch, X::PetscVec, Y::PetscVec ) - changed_ = Ref{PetscBool}() + changed_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:SNESLineSearchPreCheck, $petsc_library), @@ -443,8 +443,8 @@ $(_doc_external("SNES/SNESLineSearchPostCheck")) function SNESLineSearchPostCheck(petsclib::PetscLibType, linesearch::SNESLineSearch, X::PetscVec, Y::PetscVec, W::PetscVec) end @for_petsc function SNESLineSearchPostCheck(petsclib::$UnionPetscLib, linesearch::SNESLineSearch, X::PetscVec, Y::PetscVec, W::PetscVec ) - changed_Y_ = Ref{PetscBool}() - changed_W_ = Ref{PetscBool}() + changed_Y_ = Ref{PetscBool}(PETSC_FALSE) + changed_W_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:SNESLineSearchPostCheck, $petsc_library), @@ -490,7 +490,7 @@ $(_doc_external("SNES/SNESLineSearchPreCheckPicard")) function SNESLineSearchPreCheckPicard(petsclib::PetscLibType, linesearch::SNESLineSearch, X::PetscVec, Y::PetscVec, ctx::Cvoid) end @for_petsc function SNESLineSearchPreCheckPicard(petsclib::$UnionPetscLib, linesearch::SNESLineSearch, X::PetscVec, Y::PetscVec, ctx::Cvoid ) - changed_ = Ref{PetscBool}() + changed_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:SNESLineSearchPreCheckPicard, $petsc_library), diff --git a/src/autowrapped/SNES_wrappers.jl b/src/autowrapped/SNES_wrappers.jl index 5ba5e0083..c7b213439 100644 --- a/src/autowrapped/SNES_wrappers.jl +++ b/src/autowrapped/SNES_wrappers.jl @@ -658,7 +658,7 @@ $(_doc_external("SNES/SNESGetErrorIfNotConverged")) function SNESGetErrorIfNotConverged(petsclib::PetscLibType, snes::PetscSNES) end @for_petsc function SNESGetErrorIfNotConverged(petsclib::$UnionPetscLib, snes::PetscSNES ) - flag_ = Ref{PetscBool}() + flag_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:SNESGetErrorIfNotConverged, $petsc_library), @@ -726,7 +726,7 @@ $(_doc_external("SNES/SNESGetAlwaysComputesFinalResidual")) function SNESGetAlwaysComputesFinalResidual(petsclib::PetscLibType, snes::PetscSNES) end @for_petsc function SNESGetAlwaysComputesFinalResidual(petsclib::$UnionPetscLib, snes::PetscSNES ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:SNESGetAlwaysComputesFinalResidual, $petsc_library), @@ -861,7 +861,7 @@ $(_doc_external("SNES/SNESGetCheckJacobianDomainError")) function SNESGetCheckJacobianDomainError(petsclib::PetscLibType, snes::PetscSNES) end @for_petsc function SNESGetCheckJacobianDomainError(petsclib::$UnionPetscLib, snes::PetscSNES ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:SNESGetCheckJacobianDomainError, $petsc_library), @@ -897,7 +897,7 @@ $(_doc_external("SNES/SNESGetFunctionDomainError")) function SNESGetFunctionDomainError(petsclib::PetscLibType, snes::PetscSNES) end @for_petsc function SNESGetFunctionDomainError(petsclib::$UnionPetscLib, snes::PetscSNES ) - domainerror_ = Ref{PetscBool}() + domainerror_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:SNESGetFunctionDomainError, $petsc_library), @@ -933,7 +933,7 @@ $(_doc_external("SNES/SNESGetJacobianDomainError")) function SNESGetJacobianDomainError(petsclib::PetscLibType, snes::PetscSNES) end @for_petsc function SNESGetJacobianDomainError(petsclib::$UnionPetscLib, snes::PetscSNES ) - domainerror_ = Ref{PetscBool}() + domainerror_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:SNESGetJacobianDomainError, $petsc_library), @@ -1439,8 +1439,8 @@ $(_doc_external("SNES/SNESGetUseMatrixFree")) function SNESGetUseMatrixFree(petsclib::PetscLibType, snes::PetscSNES) end @for_petsc function SNESGetUseMatrixFree(petsclib::$UnionPetscLib, snes::PetscSNES ) - mf_operator_ = Ref{PetscBool}() - mf_ = Ref{PetscBool}() + mf_operator_ = Ref{PetscBool}(PETSC_FALSE) + mf_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:SNESGetUseMatrixFree, $petsc_library), @@ -3416,7 +3416,7 @@ $(_doc_external("SNES/SNESGetForceIteration")) function SNESGetForceIteration(petsclib::PetscLibType, snes::PetscSNES) end @for_petsc function SNESGetForceIteration(petsclib::$UnionPetscLib, snes::PetscSNES ) - force_ = Ref{PetscBool}() + force_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:SNESGetForceIteration, $petsc_library), @@ -4646,7 +4646,7 @@ $(_doc_external("SNES/SNESKSPGetUseEW")) function SNESKSPGetUseEW(petsclib::PetscLibType, snes::PetscSNES) end @for_petsc function SNESKSPGetUseEW(petsclib::$UnionPetscLib, snes::PetscSNES ) - flag_ = Ref{PetscBool}() + flag_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:SNESKSPGetUseEW, $petsc_library), @@ -4957,7 +4957,7 @@ $(_doc_external("SNES/SNESHasNPC")) function SNESHasNPC(petsclib::PetscLibType, snes::PetscSNES) end @for_petsc function SNESHasNPC(petsclib::$UnionPetscLib, snes::PetscSNES ) - has_npc_ = Ref{PetscBool}() + has_npc_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:SNESHasNPC, $petsc_library), @@ -5605,7 +5605,7 @@ $(_doc_external("SNES/SNESNGMRESGetRestartFmRise")) function SNESNGMRESGetRestartFmRise(petsclib::PetscLibType, snes::PetscSNES) end @for_petsc function SNESNGMRESGetRestartFmRise(petsclib::$UnionPetscLib, snes::PetscSNES ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:SNESNGMRESGetRestartFmRise, $petsc_library), @@ -7524,7 +7524,7 @@ $(_doc_external("SNES/SNESNewtonTRDCGetRhoFlag")) function SNESNewtonTRDCGetRhoFlag(petsclib::PetscLibType, snes::PetscSNES) end @for_petsc function SNESNewtonTRDCGetRhoFlag(petsclib::$UnionPetscLib, snes::PetscSNES ) - rho_flag_ = Ref{PetscBool}() + rho_flag_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:SNESNewtonTRDCGetRhoFlag, $petsc_library), @@ -8027,7 +8027,7 @@ $(_doc_external("SNES/SNESFASGetGalerkin")) function SNESFASGetGalerkin(petsclib::PetscLibType, snes::PetscSNES) end @for_petsc function SNESFASGetGalerkin(petsclib::$UnionPetscLib, snes::PetscSNES ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:SNESFASGetGalerkin, $petsc_library), @@ -8829,7 +8829,7 @@ $(_doc_external("SNES/SNESFASCycleIsFine")) function SNESFASCycleIsFine(petsclib::PetscLibType, snes::PetscSNES) end @for_petsc function SNESFASCycleIsFine(petsclib::$UnionPetscLib, snes::PetscSNES ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:SNESFASCycleIsFine, $petsc_library), @@ -9310,7 +9310,7 @@ $(_doc_external("SNES/SNESFASFullGetTotal")) function SNESFASFullGetTotal(petsclib::PetscLibType, snes::PetscSNES) end @for_petsc function SNESFASFullGetTotal(petsclib::$UnionPetscLib, snes::PetscSNES ) - total_ = Ref{PetscBool}() + total_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:SNESFASFullGetTotal, $petsc_library), @@ -9507,7 +9507,7 @@ $(_doc_external("SNES/SNESNewtonTRPreCheck")) function SNESNewtonTRPreCheck(petsclib::PetscLibType, snes::PetscSNES, X::PetscVec, Y::PetscVec) end @for_petsc function SNESNewtonTRPreCheck(petsclib::$UnionPetscLib, snes::PetscSNES, X::PetscVec, Y::PetscVec ) - changed_Y_ = Ref{PetscBool}() + changed_Y_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:SNESNewtonTRPreCheck, $petsc_library), @@ -9545,8 +9545,8 @@ $(_doc_external("SNES/SNESNewtonTRPostCheck")) function SNESNewtonTRPostCheck(petsclib::PetscLibType, snes::PetscSNES, X::PetscVec, Y::PetscVec, W::PetscVec) end @for_petsc function SNESNewtonTRPostCheck(petsclib::$UnionPetscLib, snes::PetscSNES, X::PetscVec, Y::PetscVec, W::PetscVec ) - changed_Y_ = Ref{PetscBool}() - changed_W_ = Ref{PetscBool}() + changed_Y_ = Ref{PetscBool}(PETSC_FALSE) + changed_W_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:SNESNewtonTRPostCheck, $petsc_library), diff --git a/src/autowrapped/Sys_wrappers.jl b/src/autowrapped/Sys_wrappers.jl index 4a5730215..acc01b195 100644 --- a/src/autowrapped/Sys_wrappers.jl +++ b/src/autowrapped/Sys_wrappers.jl @@ -492,7 +492,7 @@ $(_doc_external("Sys/PetscPullJSONValue")) function PetscPullJSONValue(petsclib::PetscLibType, buff::Vector{Cchar}, key::Vector{Cchar}, value::Vector{Cchar}, valuelen::Csize_t) end @for_petsc function PetscPullJSONValue(petsclib::$UnionPetscLib, buff::Vector{Cchar}, key::Vector{Cchar}, value::Vector{Cchar}, valuelen::Csize_t ) - found_ = Ref{PetscBool}() + found_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscPullJSONValue, $petsc_library), @@ -1084,7 +1084,7 @@ $(_doc_external("Sys/PetscMallocViewGet")) function PetscMallocViewGet(petsclib::PetscLibType) end @for_petsc function PetscMallocViewGet(petsclib::$UnionPetscLib) - logging_ = Ref{PetscBool}() + logging_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscMallocViewGet, $petsc_library), @@ -1155,7 +1155,7 @@ $(_doc_external("Sys/PetscMallocTraceGet")) function PetscMallocTraceGet(petsclib::PetscLibType) end @for_petsc function PetscMallocTraceGet(petsclib::$UnionPetscLib) - logging_ = Ref{PetscBool}() + logging_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscMallocTraceGet, $petsc_library), @@ -1262,9 +1262,9 @@ $(_doc_external("Sys/PetscMallocGetDebug")) function PetscMallocGetDebug(petsclib::PetscLibType) end @for_petsc function PetscMallocGetDebug(petsclib::$UnionPetscLib) - basic_ = Ref{PetscBool}() - eachcall_ = Ref{PetscBool}() - initializenan_ = Ref{PetscBool}() + basic_ = Ref{PetscBool}(PETSC_FALSE) + eachcall_ = Ref{PetscBool}(PETSC_FALSE) + initializenan_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscMallocGetDebug, $petsc_library), @@ -1333,7 +1333,7 @@ $(_doc_external("Sys/PetscMallocLogRequestedSizeGet")) function PetscMallocLogRequestedSizeGet(petsclib::PetscLibType) end @for_petsc function PetscMallocLogRequestedSizeGet(petsclib::$UnionPetscLib) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscMallocLogRequestedSizeGet, $petsc_library), @@ -1542,7 +1542,7 @@ $(_doc_external("Sys/PetscTestFile")) function PetscTestFile(petsclib::PetscLibType, fname::Vector{Cchar}, mode::Cchar) end @for_petsc function PetscTestFile(petsclib::$UnionPetscLib, fname::Vector{Cchar}, mode::Cchar ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscTestFile, $petsc_library), @@ -1579,7 +1579,7 @@ $(_doc_external("Sys/PetscTestDirectory")) function PetscTestDirectory(petsclib::PetscLibType, dirname::Vector{Cchar}, mode::Cchar) end @for_petsc function PetscTestDirectory(petsclib::$UnionPetscLib, dirname::Vector{Cchar}, mode::Cchar ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscTestDirectory, $petsc_library), @@ -1618,7 +1618,7 @@ $(_doc_external("Sys/PetscLs")) function PetscLs(petsclib::PetscLibType, comm::MPI_Comm, dirname::Vector{Cchar}, found::Vector{Cchar}, tlen::Csize_t) end @for_petsc function PetscLs(petsclib::$UnionPetscLib, comm::MPI_Comm, dirname::Vector{Cchar}, found::Vector{Cchar}, tlen::Csize_t ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscLs, $petsc_library), @@ -1744,7 +1744,7 @@ $(_doc_external("Sys/PetscSharedTmp")) function PetscSharedTmp(petsclib::PetscLibType, comm::MPI_Comm) end @for_petsc function PetscSharedTmp(petsclib::$UnionPetscLib, comm::MPI_Comm ) - shared_ = Ref{PetscBool}() + shared_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscSharedTmp, $petsc_library), @@ -1788,7 +1788,7 @@ $(_doc_external("Sys/PetscSharedWorkingDirectory")) function PetscSharedWorkingDirectory(petsclib::PetscLibType, comm::MPI_Comm) end @for_petsc function PetscSharedWorkingDirectory(petsclib::$UnionPetscLib, comm::MPI_Comm ) - shared_ = Ref{PetscBool}() + shared_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscSharedWorkingDirectory, $petsc_library), @@ -1828,7 +1828,7 @@ $(_doc_external("Sys/PetscFileRetrieve")) function PetscFileRetrieve(petsclib::PetscLibType, comm::MPI_Comm, url::Vector{Cchar}, locname::Vector{Cchar}, llen::Csize_t) end @for_petsc function PetscFileRetrieve(petsclib::$UnionPetscLib, comm::MPI_Comm, url::Vector{Cchar}, locname::Vector{Cchar}, llen::Csize_t ) - found_ = Ref{PetscBool}() + found_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscFileRetrieve, $petsc_library), @@ -2935,7 +2935,7 @@ $(_doc_external("Sys/PetscMonitorCompare")) function PetscMonitorCompare(petsclib::PetscLibType, nmon::external, nmctx::Cvoid, nmdestroy::PetscCtxDestroyFn, mon::external, mctx::Cvoid, mdestroy::PetscCtxDestroyFn) end @for_petsc function PetscMonitorCompare(petsclib::$UnionPetscLib, nmon::external, nmctx::Cvoid, nmdestroy::PetscCtxDestroyFn, mon::external, mctx::Cvoid, mdestroy::PetscCtxDestroyFn ) - identical_ = Ref{PetscBool}() + identical_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscMonitorCompare, $petsc_library), @@ -3153,7 +3153,7 @@ $(_doc_external("Sys/PetscHasExternalPackage")) function PetscHasExternalPackage(petsclib::PetscLibType, pkg::Vector{Cchar}) end @for_petsc function PetscHasExternalPackage(petsclib::$UnionPetscLib, pkg::Vector{Cchar} ) - has_ = Ref{PetscBool}() + has_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscHasExternalPackage, $petsc_library), @@ -3268,7 +3268,7 @@ $(_doc_external("Sys/PetscInitialized")) function PetscInitialized(petsclib::PetscLibType) end @for_petsc function PetscInitialized(petsclib::$UnionPetscLib) - isInitialized_ = Ref{PetscBool}() + isInitialized_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscInitialized, $petsc_library), @@ -3299,7 +3299,7 @@ $(_doc_external("Sys/PetscFinalized")) function PetscFinalized(petsclib::PetscLibType) end @for_petsc function PetscFinalized(petsclib::$UnionPetscLib) - isFinalized_ = Ref{PetscBool}() + isFinalized_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscFinalized, $petsc_library), @@ -4113,7 +4113,7 @@ function PetscDataTypeFromString(petsclib::PetscLibType, name::Vector{Cchar}) en @for_petsc function PetscDataTypeFromString(petsclib::$UnionPetscLib, name::Vector{Cchar} ) ptype_ = Ref{PetscDataType}() - found_ = Ref{PetscBool}() + found_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscDataTypeFromString, $petsc_library), @@ -4177,7 +4177,7 @@ $(_doc_external("Sys/PetscElementalInitialized")) function PetscElementalInitialized(petsclib::PetscLibType) end @for_petsc function PetscElementalInitialized(petsclib::$UnionPetscLib) - isInitialized_ = Ref{PetscBool}() + isInitialized_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscElementalInitialized, $petsc_library), @@ -4599,7 +4599,7 @@ $(_doc_external("Sys/PetscSortedInt")) function PetscSortedInt(petsclib::PetscLibType, n::PetscCount, X::Vector{PetscInt}) end @for_petsc function PetscSortedInt(petsclib::$UnionPetscLib, n::PetscCount, X::Vector{$PetscInt} ) - sorted_ = Ref{PetscBool}() + sorted_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscSortedInt, $petsc_library), @@ -4636,7 +4636,7 @@ $(_doc_external("Sys/PetscSortedInt64")) function PetscSortedInt64(petsclib::PetscLibType, n::PetscCount, X::Vector{PetscInt64}) end @for_petsc function PetscSortedInt64(petsclib::$UnionPetscLib, n::PetscCount, X::Vector{$PetscInt64} ) - sorted_ = Ref{PetscBool}() + sorted_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscSortedInt64, $petsc_library), @@ -4830,7 +4830,7 @@ $(_doc_external("Sys/PetscSortedCheckDupsInt")) function PetscSortedCheckDupsInt(petsclib::PetscLibType, n::PetscCount, X::Vector{PetscInt}) end @for_petsc function PetscSortedCheckDupsInt(petsclib::$UnionPetscLib, n::PetscCount, X::Vector{$PetscInt} ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscSortedCheckDupsInt, $petsc_library), @@ -4867,7 +4867,7 @@ $(_doc_external("Sys/PetscSortedCheckDupsCount")) function PetscSortedCheckDupsCount(petsclib::PetscLibType, n::PetscCount, X::Vector{PetscCount}) end @for_petsc function PetscSortedCheckDupsCount(petsclib::$UnionPetscLib, n::PetscCount, X::Vector{PetscCount} ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscSortedCheckDupsCount, $petsc_library), @@ -5013,7 +5013,7 @@ $(_doc_external("Sys/PetscCheckDupsInt")) function PetscCheckDupsInt(petsclib::PetscLibType, n::PetscInt, X::Vector{PetscInt}) end @for_petsc function PetscCheckDupsInt(petsclib::$UnionPetscLib, n::$PetscInt, X::Vector{$PetscInt} ) - dups_ = Ref{PetscBool}() + dups_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscCheckDupsInt, $petsc_library), @@ -5260,7 +5260,7 @@ $(_doc_external("Sys/PetscSortedMPIInt")) function PetscSortedMPIInt(petsclib::PetscLibType, n::PetscCount, X::Vector{PetscMPIInt}) end @for_petsc function PetscSortedMPIInt(petsclib::$UnionPetscLib, n::PetscCount, X::Vector{PetscMPIInt} ) - sorted_ = Ref{PetscBool}() + sorted_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscSortedMPIInt, $petsc_library), @@ -5683,7 +5683,7 @@ $(_doc_external("Sys/PetscParallelSortedInt")) function PetscParallelSortedInt(petsclib::PetscLibType, comm::MPI_Comm, n::PetscInt, keys::Vector{PetscInt}) end @for_petsc function PetscParallelSortedInt(petsclib::$UnionPetscLib, comm::MPI_Comm, n::$PetscInt, keys::Vector{$PetscInt} ) - is_sorted_ = Ref{PetscBool}() + is_sorted_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscParallelSortedInt, $petsc_library), @@ -6095,7 +6095,7 @@ $(_doc_external("Sys/PetscStrcasecmp")) function PetscStrcasecmp(petsclib::PetscLibType, a::Vector{Cchar}, b::Vector{Cchar}) end @for_petsc function PetscStrcasecmp(petsclib::$UnionPetscLib, a::Vector{Cchar}, b::Vector{Cchar} ) - t_ = Ref{PetscBool}() + t_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscStrcasecmp, $petsc_library), @@ -6171,7 +6171,7 @@ $(_doc_external("Sys/PetscStrInList")) function PetscStrInList(petsclib::PetscLibType, str::Vector{Cchar}, list::Vector{Cchar}, sep::Cchar) end @for_petsc function PetscStrInList(petsclib::$UnionPetscLib, str::Vector{Cchar}, list::Vector{Cchar}, sep::Cchar ) - found_ = Ref{PetscBool}() + found_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscStrInList, $petsc_library), @@ -6277,7 +6277,7 @@ function PetscEListFind(petsclib::PetscLibType, n::PetscInt, list::Cchar, str::V @for_petsc function PetscEListFind(petsclib::$UnionPetscLib, n::$PetscInt, list::Cchar, str::Vector{Cchar} ) value_ = Ref{$PetscInt}() - found_ = Ref{PetscBool}() + found_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscEListFind, $petsc_library), @@ -6316,7 +6316,7 @@ $(_doc_external("Sys/PetscEnumFind")) function PetscEnumFind(petsclib::PetscLibType, enumlist::Cchar, str::Vector{Cchar}, value::PetscEnum) end @for_petsc function PetscEnumFind(petsclib::$UnionPetscLib, enumlist::Cchar, str::Vector{Cchar}, value::PetscEnum ) - found_ = Ref{PetscBool}() + found_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscEnumFind, $petsc_library), @@ -6548,7 +6548,7 @@ $(_doc_external("Sys/PetscSortedReal")) function PetscSortedReal(petsclib::PetscLibType, n::PetscCount, X::Vector{PetscReal}) end @for_petsc function PetscSortedReal(petsclib::$UnionPetscLib, n::PetscCount, X::Vector{$PetscReal} ) - sorted_ = Ref{PetscBool}() + sorted_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscSortedReal, $petsc_library), @@ -7456,7 +7456,7 @@ $(_doc_external("Sys/PetscMemcmp")) function PetscMemcmp(petsclib::PetscLibType, str1::Cvoid, str2::Cvoid, len::Csize_t) end @for_petsc function PetscMemcmp(petsclib::$UnionPetscLib, str1::Cvoid, str2::Cvoid, len::Csize_t ) - e_ = Ref{PetscBool}() + e_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscMemcmp, $petsc_library), @@ -7619,7 +7619,7 @@ $(_doc_external("Sys/PetscInfoEnabled")) function PetscInfoEnabled(petsclib::PetscLibType, classid::PetscClassId) end @for_petsc function PetscInfoEnabled(petsclib::$UnionPetscLib, classid::PetscClassId ) - enabled_ = Ref{PetscBool}() + enabled_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscInfoEnabled, $petsc_library), @@ -7785,7 +7785,7 @@ $(_doc_external("Sys/PetscInfoGetClass")) function PetscInfoGetClass(petsclib::PetscLibType, classname::Vector{Cchar}) end @for_petsc function PetscInfoGetClass(petsclib::$UnionPetscLib, classname::Vector{Cchar} ) - found_ = Ref{PetscBool}() + found_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscInfoGetClass, $petsc_library), @@ -7823,10 +7823,10 @@ $(_doc_external("Sys/PetscInfoGetInfo")) function PetscInfoGetInfo(petsclib::PetscLibType, commSelfFlag::PetscInfoCommFlag) end @for_petsc function PetscInfoGetInfo(petsclib::$UnionPetscLib, commSelfFlag::PetscInfoCommFlag ) - infoEnabled_ = Ref{PetscBool}() - classesSet_ = Ref{PetscBool}() - exclude_ = Ref{PetscBool}() - locked_ = Ref{PetscBool}() + infoEnabled_ = Ref{PetscBool}(PETSC_FALSE) + classesSet_ = Ref{PetscBool}(PETSC_FALSE) + exclude_ = Ref{PetscBool}(PETSC_FALSE) + locked_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscInfoGetInfo, $petsc_library), @@ -9094,7 +9094,7 @@ $(_doc_external("Sys/PetscLogIsActive")) function PetscLogIsActive(petsclib::PetscLibType) end @for_petsc function PetscLogIsActive(petsclib::$UnionPetscLib) - isActive_ = Ref{PetscBool}() + isActive_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscLogIsActive, $petsc_library), @@ -9535,7 +9535,7 @@ $(_doc_external("Sys/PetscLogStageGetActive")) function PetscLogStageGetActive(petsclib::PetscLibType, stage::PetscLogStage) end @for_petsc function PetscLogStageGetActive(petsclib::$UnionPetscLib, stage::PetscLogStage ) - isActive_ = Ref{PetscBool}() + isActive_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscLogStageGetActive, $petsc_library), @@ -9603,7 +9603,7 @@ $(_doc_external("Sys/PetscLogStageGetVisible")) function PetscLogStageGetVisible(petsclib::PetscLibType, stage::PetscLogStage) end @for_petsc function PetscLogStageGetVisible(petsclib::$UnionPetscLib, stage::PetscLogStage ) - isVisible_ = Ref{PetscBool}() + isVisible_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscLogStageGetVisible, $petsc_library), @@ -12707,7 +12707,7 @@ $(_doc_external("Sys/PetscStrcmp")) function PetscStrcmp(petsclib::PetscLibType, a::Vector{Cchar}, b::Vector{Cchar}) end @for_petsc function PetscStrcmp(petsclib::$UnionPetscLib, a::Vector{Cchar}, b::Vector{Cchar} ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscStrcmp, $petsc_library), @@ -12772,7 +12772,7 @@ $(_doc_external("Sys/PetscStrncmp")) function PetscStrncmp(petsclib::PetscLibType, a::Vector{Cchar}, b::Vector{Cchar}, n::Csize_t) end @for_petsc function PetscStrncmp(petsclib::$UnionPetscLib, a::Vector{Cchar}, b::Vector{Cchar}, n::Csize_t ) - t_ = Ref{PetscBool}() + t_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscStrncmp, $petsc_library), @@ -12839,7 +12839,7 @@ $(_doc_external("Sys/PetscStrgrt")) function PetscStrgrt(petsclib::PetscLibType, a::Vector{Cchar}, b::Vector{Cchar}) end @for_petsc function PetscStrgrt(petsclib::$UnionPetscLib, a::Vector{Cchar}, b::Vector{Cchar} ) - t_ = Ref{PetscBool}() + t_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscStrgrt, $petsc_library), @@ -12906,7 +12906,7 @@ $(_doc_external("Sys/PetscStrendswith")) function PetscStrendswith(petsclib::PetscLibType, a::Vector{Cchar}, b::Vector{Cchar}) end @for_petsc function PetscStrendswith(petsclib::$UnionPetscLib, a::Vector{Cchar}, b::Vector{Cchar} ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscStrendswith, $petsc_library), @@ -12929,7 +12929,7 @@ $(_doc_external("Sys/PetscStrbeginswith")) function PetscStrbeginswith(petsclib::PetscLibType, a::Vector{Cchar}, b::Vector{Cchar}) end @for_petsc function PetscStrbeginswith(petsclib::$UnionPetscLib, a::Vector{Cchar}, b::Vector{Cchar} ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscStrbeginswith, $petsc_library), @@ -13465,7 +13465,7 @@ $(_doc_external("Sys/PetscCitationsRegister")) function PetscCitationsRegister(petsclib::PetscLibType, cit::Vector{Cchar}) end @for_petsc function PetscCitationsRegister(petsclib::$UnionPetscLib, cit::Vector{Cchar} ) - set_ = Ref{PetscBool}() + set_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscCitationsRegister, $petsc_library), @@ -13581,7 +13581,7 @@ function PetscDTEnumPerm(petsclib::PetscLibType, n::PetscInt, k::PetscInt) end @for_petsc function PetscDTEnumPerm(petsclib::$UnionPetscLib, n::$PetscInt, k::$PetscInt ) perm_ = Ref{$PetscInt}() - isOdd_ = Ref{PetscBool}() + isOdd_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscDTEnumPerm, $petsc_library), @@ -13607,7 +13607,7 @@ function PetscDTPermIndex(petsclib::PetscLibType, n::PetscInt) end @for_petsc function PetscDTPermIndex(petsclib::$UnionPetscLib, n::$PetscInt ) perm_ = Ref{$PetscInt}() k_ = Ref{$PetscInt}() - isOdd_ = Ref{PetscBool}() + isOdd_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscDTPermIndex, $petsc_library), @@ -13681,7 +13681,7 @@ function PetscDTEnumSplit(petsclib::PetscLibType, n::PetscInt, k::PetscInt, j::P @for_petsc function PetscDTEnumSplit(petsclib::$UnionPetscLib, n::$PetscInt, k::$PetscInt, j::$PetscInt ) perm_ = Ref{$PetscInt}() - isOdd_ = Ref{PetscBool}() + isOdd_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscDTEnumSplit, $petsc_library), @@ -13809,8 +13809,8 @@ $(_doc_external("Sys/PetscOptionsBool")) function PetscOptionsBool(petsclib::PetscLibType, opt::Vector{Cchar}, text::Vector{Cchar}, man::Vector{Cchar}, currentvalue::PetscBool) end @for_petsc function PetscOptionsBool(petsclib::$UnionPetscLib, opt::Vector{Cchar}, text::Vector{Cchar}, man::Vector{Cchar}, currentvalue::PetscBool ) - value_ = Ref{PetscBool}() - set_ = Ref{PetscBool}() + value_ = Ref{PetscBool}(PETSC_FALSE) + set_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscOptionsBool, $petsc_library), @@ -13856,7 +13856,7 @@ function PetscOptionsInt(petsclib::PetscLibType, opt::Vector{Cchar}, text::Vecto @for_petsc function PetscOptionsInt(petsclib::$UnionPetscLib, opt::Vector{Cchar}, text::Vector{Cchar}, man::Vector{Cchar}, currentvalue::$PetscInt ) value_ = Ref{$PetscInt}() - set_ = Ref{PetscBool}() + set_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscOptionsInt, $petsc_library), @@ -13881,7 +13881,7 @@ function PetscOptionsReal(petsclib::PetscLibType, opt::Vector{Cchar}, text::Vect @for_petsc function PetscOptionsReal(petsclib::$UnionPetscLib, opt::Vector{Cchar}, text::Vector{Cchar}, man::Vector{Cchar}, currentvalue::$PetscReal ) value_ = Ref{$PetscReal}() - set_ = Ref{PetscBool}() + set_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscOptionsReal, $petsc_library), @@ -13906,7 +13906,7 @@ function PetscOptionsScalar(petsclib::PetscLibType, opt::Vector{Cchar}, text::Ve @for_petsc function PetscOptionsScalar(petsclib::$UnionPetscLib, opt::Vector{Cchar}, text::Vector{Cchar}, man::Vector{Cchar}, currentvalue::$PetscScalar ) value_ = Ref{$PetscScalar}() - set_ = Ref{PetscBool}() + set_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscOptionsScalar, $petsc_library), @@ -13931,7 +13931,7 @@ function PetscOptionsScalarArray(petsclib::PetscLibType, opt::Vector{Cchar}, tex @for_petsc function PetscOptionsScalarArray(petsclib::$UnionPetscLib, opt::Vector{Cchar}, text::Vector{Cchar}, man::Vector{Cchar}, value::Vector{$PetscScalar} ) n_ = Ref{$PetscInt}() - set_ = Ref{PetscBool}() + set_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscOptionsScalarArray, $petsc_library), @@ -13956,7 +13956,7 @@ function PetscOptionsIntArray(petsclib::PetscLibType, opt::Vector{Cchar}, text:: @for_petsc function PetscOptionsIntArray(petsclib::$UnionPetscLib, opt::Vector{Cchar}, text::Vector{Cchar}, man::Vector{Cchar}, value::Vector{$PetscInt} ) n_ = Ref{$PetscInt}() - set_ = Ref{PetscBool}() + set_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscOptionsIntArray, $petsc_library), @@ -13981,7 +13981,7 @@ function PetscOptionsRealArray(petsclib::PetscLibType, opt::Vector{Cchar}, text: @for_petsc function PetscOptionsRealArray(petsclib::$UnionPetscLib, opt::Vector{Cchar}, text::Vector{Cchar}, man::Vector{Cchar}, value::Vector{$PetscReal} ) n_ = Ref{$PetscInt}() - set_ = Ref{PetscBool}() + set_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscOptionsRealArray, $petsc_library), @@ -14006,7 +14006,7 @@ function PetscOptionsBoolArray(petsclib::PetscLibType, opt::Vector{Cchar}, text: @for_petsc function PetscOptionsBoolArray(petsclib::$UnionPetscLib, opt::Vector{Cchar}, text::Vector{Cchar}, man::Vector{Cchar}, value::Vector{PetscBool} ) n_ = Ref{$PetscInt}() - set_ = Ref{PetscBool}() + set_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:PetscOptionsBoolArray, $petsc_library), diff --git a/src/autowrapped/TS_wrappers.jl b/src/autowrapped/TS_wrappers.jl index da06fbc1c..6765e14d5 100644 --- a/src/autowrapped/TS_wrappers.jl +++ b/src/autowrapped/TS_wrappers.jl @@ -1097,7 +1097,7 @@ $(_doc_external("Ts/TSHasTransientVariable")) function TSHasTransientVariable(petsclib::PetscLibType, ts::TS) end @for_petsc function TSHasTransientVariable(petsclib::$UnionPetscLib, ts::TS ) - has_ = Ref{PetscBool}() + has_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:TSHasTransientVariable, $petsc_library), @@ -4432,7 +4432,7 @@ $(_doc_external("Ts/TSGetStepRollBack")) function TSGetStepRollBack(petsclib::PetscLibType, ts::TS) end @for_petsc function TSGetStepRollBack(petsclib::$UnionPetscLib, ts::TS ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:TSGetStepRollBack, $petsc_library), @@ -4468,7 +4468,7 @@ $(_doc_external("Ts/TSGetStepResize")) function TSGetStepResize(petsclib::PetscLibType, ts::TS) end @for_petsc function TSGetStepResize(petsclib::$UnionPetscLib, ts::TS ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:TSGetStepResize, $petsc_library), @@ -4619,7 +4619,7 @@ $(_doc_external("Ts/TSFunctionDomainError")) function TSFunctionDomainError(petsclib::PetscLibType, ts::TS, stagetime::PetscReal, Y::PetscVec) end @for_petsc function TSFunctionDomainError(petsclib::$UnionPetscLib, ts::TS, stagetime::$PetscReal, Y::PetscVec ) - accept_ = Ref{PetscBool}() + accept_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:TSFunctionDomainError, $petsc_library), @@ -4694,7 +4694,7 @@ $(_doc_external("Ts/TSRHSJacobianTest")) function TSRHSJacobianTest(petsclib::PetscLibType, ts::TS) end @for_petsc function TSRHSJacobianTest(petsclib::$UnionPetscLib, ts::TS ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:TSRHSJacobianTest, $petsc_library), @@ -4733,7 +4733,7 @@ $(_doc_external("Ts/TSRHSJacobianTestTranspose")) function TSRHSJacobianTestTranspose(petsclib::PetscLibType, ts::TS) end @for_petsc function TSRHSJacobianTestTranspose(petsclib::$UnionPetscLib, ts::TS ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:TSRHSJacobianTestTranspose, $petsc_library), @@ -4804,7 +4804,7 @@ $(_doc_external("Ts/TSGetUseSplitRHSFunction")) function TSGetUseSplitRHSFunction(petsclib::PetscLibType, ts::TS) end @for_petsc function TSGetUseSplitRHSFunction(petsclib::$UnionPetscLib, ts::TS ) - use_splitrhsfnc_ = Ref{PetscBool}() + use_splitrhsfnc_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:TSGetUseSplitRHSFunction, $petsc_library), @@ -8370,7 +8370,7 @@ $(_doc_external("Ts/TSGetQuadratureTS")) function TSGetQuadratureTS(petsclib::PetscLibType, ts::TS, quadts::TS) end @for_petsc function TSGetQuadratureTS(petsclib::$UnionPetscLib, ts::TS, quadts::TS ) - fwd_ = Ref{PetscBool}() + fwd_ = Ref{PetscBool}(PETSC_FALSE) quadts_ = Ref(quadts.ptr) @chk ccall( @@ -8710,7 +8710,7 @@ $(_doc_external("Ts/TSARKIMEXGetFullyImplicit")) function TSARKIMEXGetFullyImplicit(petsclib::PetscLibType, ts::TS) end @for_petsc function TSARKIMEXGetFullyImplicit(petsclib::$UnionPetscLib, ts::TS ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:TSARKIMEXGetFullyImplicit, $petsc_library), @@ -8852,7 +8852,7 @@ $(_doc_external("Ts/TSARKIMEXGetFastSlowSplit")) function TSARKIMEXGetFastSlowSplit(petsclib::PetscLibType, ts::TS) end @for_petsc function TSARKIMEXGetFastSlowSplit(petsclib::$UnionPetscLib, ts::TS ) - fastslow_ = Ref{PetscBool}() + fastslow_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:TSARKIMEXGetFastSlowSplit, $petsc_library), @@ -9288,7 +9288,7 @@ function TSRKGetTableau(petsclib::PetscLibType, ts::TS) end bembed_ = Ref{$PetscReal}() p_ = Ref{$PetscInt}() binterp_ = Ref{$PetscReal}() - FSAL_ = Ref{PetscBool}() + FSAL_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:TSRKGetTableau, $petsc_library), @@ -9473,7 +9473,7 @@ $(_doc_external("Ts/TSRKGetMultirate")) function TSRKGetMultirate(petsclib::PetscLibType, ts::TS) end @for_petsc function TSRKGetMultirate(petsclib::$UnionPetscLib, ts::TS ) - use_multirate_ = Ref{PetscBool}() + use_multirate_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:TSRKGetMultirate, $petsc_library), @@ -9829,7 +9829,7 @@ function TSPseudoVerifyTimeStepDefault(petsclib::PetscLibType, ts::TS, update::P @for_petsc function TSPseudoVerifyTimeStepDefault(petsclib::$UnionPetscLib, ts::TS, update::PetscVec, dtctx::Cvoid ) newdt_ = Ref{$PetscReal}() - flag_ = Ref{PetscBool}() + flag_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:TSPseudoVerifyTimeStepDefault, $petsc_library), @@ -9869,7 +9869,7 @@ function TSPseudoVerifyTimeStep(petsclib::PetscLibType, ts::TS, update::PetscVec @for_petsc function TSPseudoVerifyTimeStep(petsclib::$UnionPetscLib, ts::TS, update::PetscVec ) dt_ = Ref{$PetscReal}() - flag_ = Ref{PetscBool}() + flag_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:TSPseudoVerifyTimeStep, $petsc_library), @@ -11477,7 +11477,7 @@ $(_doc_external("Ts/TSThetaGetEndpoint")) function TSThetaGetEndpoint(petsclib::PetscLibType, ts::TS) end @for_petsc function TSThetaGetEndpoint(petsclib::$UnionPetscLib, ts::TS ) - endpoint_ = Ref{PetscBool}() + endpoint_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:TSThetaGetEndpoint, $petsc_library), diff --git a/src/autowrapped/TSaddons_wrappers.jl b/src/autowrapped/TSaddons_wrappers.jl index ec86230f6..c0dab45fe 100644 --- a/src/autowrapped/TSaddons_wrappers.jl +++ b/src/autowrapped/TSaddons_wrappers.jl @@ -833,7 +833,7 @@ $(_doc_external("Ts/TSTrajectoryGetSolutionOnly")) function TSTrajectoryGetSolutionOnly(petsclib::PetscLibType, tj::TSTrajectory) end @for_petsc function TSTrajectoryGetSolutionOnly(petsclib::$UnionPetscLib, tj::TSTrajectory ) - solution_only_ = Ref{PetscBool}() + solution_only_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:TSTrajectoryGetSolutionOnly, $petsc_library), @@ -2653,7 +2653,7 @@ function TSAdaptChoose(petsclib::PetscLibType, adapt::TSAdapt, ts::TS, h::PetscR @for_petsc function TSAdaptChoose(petsclib::$UnionPetscLib, adapt::TSAdapt, ts::TS, h::$PetscReal ) next_sc_ = Ref{$PetscInt}() next_h_ = Ref{$PetscReal}() - accept_ = Ref{PetscBool}() + accept_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:TSAdaptChoose, $petsc_library), @@ -2730,7 +2730,7 @@ $(_doc_external("Ts/TSAdaptCheckStage")) function TSAdaptCheckStage(petsclib::PetscLibType, adapt::TSAdapt, ts::TS, t::PetscReal, Y::PetscVec) end @for_petsc function TSAdaptCheckStage(petsclib::$UnionPetscLib, adapt::TSAdapt, ts::TS, t::$PetscReal, Y::PetscVec ) - accept_ = Ref{PetscBool}() + accept_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:TSAdaptCheckStage, $petsc_library), @@ -3166,7 +3166,7 @@ function TSGLLEAdaptChoose(petsclib::PetscLibType, adapt::TSGLLEAdapt, n::PetscI @for_petsc function TSGLLEAdaptChoose(petsclib::$UnionPetscLib, adapt::TSGLLEAdapt, n::$PetscInt, orders::Vector{$PetscInt}, errors::Vector{$PetscReal}, cost::Vector{$PetscReal}, cur::$PetscInt, h::$PetscReal, tleft::$PetscReal ) next_sc_ = Ref{$PetscInt}() next_h_ = Ref{$PetscReal}() - finish_ = Ref{PetscBool}() + finish_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:TSGLLEAdaptChoose, $petsc_library), diff --git a/src/autowrapped/Tao_addons_wrappers.jl b/src/autowrapped/Tao_addons_wrappers.jl index a2afc3ae7..5bf1a645f 100644 --- a/src/autowrapped/Tao_addons_wrappers.jl +++ b/src/autowrapped/Tao_addons_wrappers.jl @@ -551,7 +551,7 @@ $(_doc_external("Tao/TaoLineSearchIsUsingTaoRoutines")) function TaoLineSearchIsUsingTaoRoutines(petsclib::PetscLibType, ls::TaoLineSearch) end @for_petsc function TaoLineSearchIsUsingTaoRoutines(petsclib::$UnionPetscLib, ls::TaoLineSearch ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:TaoLineSearchIsUsingTaoRoutines, $petsc_library), diff --git a/src/autowrapped/Tao_wrappers.jl b/src/autowrapped/Tao_wrappers.jl index f72158db0..bf2d1ccb4 100644 --- a/src/autowrapped/Tao_wrappers.jl +++ b/src/autowrapped/Tao_wrappers.jl @@ -484,7 +484,7 @@ $(_doc_external("Tao/TaoIsObjectiveDefined")) function TaoIsObjectiveDefined(petsclib::PetscLibType, tao::Tao) end @for_petsc function TaoIsObjectiveDefined(petsclib::$UnionPetscLib, tao::Tao ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:TaoIsObjectiveDefined, $petsc_library), @@ -523,7 +523,7 @@ $(_doc_external("Tao/TaoIsGradientDefined")) function TaoIsGradientDefined(petsclib::PetscLibType, tao::Tao) end @for_petsc function TaoIsGradientDefined(petsclib::$UnionPetscLib, tao::Tao ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:TaoIsGradientDefined, $petsc_library), @@ -562,7 +562,7 @@ $(_doc_external("Tao/TaoIsObjectiveAndGradientDefined")) function TaoIsObjectiveAndGradientDefined(petsclib::PetscLibType, tao::Tao) end @for_petsc function TaoIsObjectiveAndGradientDefined(petsclib::$UnionPetscLib, tao::Tao ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:TaoIsObjectiveAndGradientDefined, $petsc_library), @@ -2250,7 +2250,7 @@ $(_doc_external("Tao/TaoGetRecycleHistory")) function TaoGetRecycleHistory(petsclib::PetscLibType, tao::Tao) end @for_petsc function TaoGetRecycleHistory(petsclib::$UnionPetscLib, tao::Tao ) - recycle_ = Ref{PetscBool}() + recycle_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:TaoGetRecycleHistory, $petsc_library), diff --git a/src/autowrapped/VecTagger_wrappers.jl b/src/autowrapped/VecTagger_wrappers.jl index 0ff62d6df..1f2ce0d66 100644 --- a/src/autowrapped/VecTagger_wrappers.jl +++ b/src/autowrapped/VecTagger_wrappers.jl @@ -335,7 +335,7 @@ $(_doc_external("Vec/VecTaggerGetInvert")) function VecTaggerGetInvert(petsclib::PetscLibType, tagger::VecTagger) end @for_petsc function VecTaggerGetInvert(petsclib::$UnionPetscLib, tagger::VecTagger ) - invert_ = Ref{PetscBool}() + invert_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:VecTaggerGetInvert, $petsc_library), @@ -409,7 +409,7 @@ function VecTaggerComputeBoxes(petsclib::PetscLibType, tagger::VecTagger, vec::P @for_petsc function VecTaggerComputeBoxes(petsclib::$UnionPetscLib, tagger::VecTagger, vec::PetscVec, boxes::Vector{VecTaggerBox} ) numBoxes_ = Ref{$PetscInt}() boxes_ = Ref(pointer(boxes)) - listed_ = Ref{PetscBool}() + listed_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:VecTaggerComputeBoxes, $petsc_library), @@ -448,7 +448,7 @@ $(_doc_external("Vec/VecTaggerComputeIS")) function VecTaggerComputeIS(petsclib::PetscLibType, tagger::VecTagger, vec::PetscVec, is::Vector{IS}) end @for_petsc function VecTaggerComputeIS(petsclib::$UnionPetscLib, tagger::VecTagger, vec::PetscVec, is::Vector{IS} ) - listed_ = Ref{PetscBool}() + listed_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:VecTaggerComputeIS, $petsc_library), diff --git a/src/autowrapped/Vec_wrappers.jl b/src/autowrapped/Vec_wrappers.jl index 92a34b8ed..333ecd1de 100644 --- a/src/autowrapped/Vec_wrappers.jl +++ b/src/autowrapped/Vec_wrappers.jl @@ -195,7 +195,7 @@ $(_doc_external("Vec/VecNormAvailable")) function VecNormAvailable(petsclib::PetscLibType, x::PetscVec, type::NormType) end @for_petsc function VecNormAvailable(petsclib::$UnionPetscLib, x::PetscVec, type::NormType ) - available_ = Ref{PetscBool}() + available_ = Ref{PetscBool}(PETSC_FALSE) val_ = Ref{$PetscReal}() @chk ccall( @@ -3983,7 +3983,7 @@ $(_doc_external("Vec/VecBoundToCPU")) function VecBoundToCPU(petsclib::PetscLibType, v::PetscVec) end @for_petsc function VecBoundToCPU(petsclib::$UnionPetscLib, v::PetscVec ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:VecBoundToCPU, $petsc_library), @@ -4017,7 +4017,7 @@ $(_doc_external("Vec/VecGetBindingPropagates")) function VecGetBindingPropagates(petsclib::PetscLibType, v::PetscVec) end @for_petsc function VecGetBindingPropagates(petsclib::$UnionPetscLib, v::PetscVec ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:VecGetBindingPropagates, $petsc_library), @@ -4487,7 +4487,7 @@ $(_doc_external("Vec/VecGhostIsLocalForm")) function VecGhostIsLocalForm(petsclib::PetscLibType, g::PetscVec, l::PetscVec) end @for_petsc function VecGhostIsLocalForm(petsclib::$UnionPetscLib, g::PetscVec, l::PetscVec ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:VecGhostIsLocalForm, $petsc_library), @@ -6093,7 +6093,7 @@ $(_doc_external("Vec/VecEqual")) function VecEqual(petsclib::PetscLibType, vec1::PetscVec, vec2::PetscVec) end @for_petsc function VecEqual(petsclib::$UnionPetscLib, vec1::PetscVec, vec2::PetscVec ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:VecEqual, $petsc_library), diff --git a/src/autowrapped/Vecs_wrappers.jl b/src/autowrapped/Vecs_wrappers.jl index f0f199959..a692aaa1c 100644 --- a/src/autowrapped/Vecs_wrappers.jl +++ b/src/autowrapped/Vecs_wrappers.jl @@ -1875,7 +1875,7 @@ $(_doc_external("Vec/VecScatterGetMerged")) function VecScatterGetMerged(petsclib::PetscLibType, sf::VecScatter) end @for_petsc function VecScatterGetMerged(petsclib::$UnionPetscLib, sf::VecScatter ) - flg_ = Ref{PetscBool}() + flg_ = Ref{PetscBool}(PETSC_FALSE) @chk ccall( (:VecScatterGetMerged, $petsc_library), diff --git a/src/deprecated/dm_wrapped.jl b/src/deprecated/dm_wrapped.jl index 5e7c35e49..bed2a8d99 100644 --- a/src/deprecated/dm_wrapped.jl +++ b/src/deprecated/dm_wrapped.jl @@ -669,7 +669,7 @@ function DMHasNamedGlobalVector(dm::AbstractDM{PetscLib},name::Vector{Char}) whe # TODO: you have vectors as input; make sure to test that the size of the vectors fits with something like: # @assert length() == n # You can likely also write a multiple dispatch version of this function where vector length is determined automatically - exists = Ref{PetscBool}() + exists = Ref{PetscBool}(PETSC_FALSE) LibPETSc.DMHasNamedGlobalVector( PetscLib, @@ -795,7 +795,7 @@ function DMHasNamedLocalVector(dm::AbstractDM{PetscLib},name::Vector{Char}) wher # TODO: you have vectors as input; make sure to test that the size of the vectors fits with something like: # @assert length() == n # You can likely also write a multiple dispatch version of this function where vector length is determined automatically - exists = Ref{PetscBool}() + exists = Ref{PetscBool}(PETSC_FALSE) LibPETSc.DMHasNamedLocalVector( PetscLib, @@ -2771,7 +2771,7 @@ See also: $(_doc_external("DM/DMGetUseNatural")) """ function DMGetUseNatural(dm::AbstractDM{PetscLib}) where {PetscLib} - useNatural = Ref{PetscBool}() + useNatural = Ref{PetscBool}(PETSC_FALSE) LibPETSc.DMGetUseNatural( PetscLib, @@ -4162,7 +4162,7 @@ Level: developer $(_doc_external("DM/DMGetCoordinatesLocalized")) """ function DMGetCoordinatesLocalized(dm::AbstractDM{PetscLib}) where {PetscLib} - areLocalized = Ref{PetscBool}() + areLocalized = Ref{PetscBool}(PETSC_FALSE) LibPETSc.DMGetCoordinatesLocalized( PetscLib, @@ -4198,7 +4198,7 @@ Level: developer $(_doc_external("DM/DMGetCoordinatesLocalizedLocal")) """ function DMGetCoordinatesLocalizedLocal(dm::AbstractDM{PetscLib}) where {PetscLib} - areLocalized = Ref{PetscBool}() + areLocalized = Ref{PetscBool}(PETSC_FALSE) LibPETSc.DMGetCoordinatesLocalizedLocal( PetscLib, @@ -4691,7 +4691,7 @@ See also: $(_doc_external("DM/DMHasVariableBounds")) """ function DMHasVariableBounds(dm::AbstractDM{PetscLib}) where {PetscLib} - flg = Ref{PetscBool}() + flg = Ref{PetscBool}(PETSC_FALSE) LibPETSc.DMHasVariableBounds( PetscLib, @@ -4729,7 +4729,7 @@ See also: $(_doc_external("DM/DMHasColoring")) """ function DMHasColoring(dm::AbstractDM{PetscLib}) where {PetscLib} - flg = Ref{PetscBool}() + flg = Ref{PetscBool}(PETSC_FALSE) LibPETSc.DMHasColoring( PetscLib, @@ -4767,7 +4767,7 @@ See also: $(_doc_external("DM/DMHasCreateRestriction")) """ function DMHasCreateRestriction(dm::AbstractDM{PetscLib}) where {PetscLib} - flg = Ref{PetscBool}() + flg = Ref{PetscBool}(PETSC_FALSE) LibPETSc.DMHasCreateRestriction( PetscLib, @@ -4805,7 +4805,7 @@ See also: $(_doc_external("DM/DMHasCreateInjection")) """ function DMHasCreateInjection(dm::AbstractDM{PetscLib}) where {PetscLib} - flg = Ref{PetscBool}() + flg = Ref{PetscBool}(PETSC_FALSE) LibPETSc.DMHasCreateInjection( PetscLib, @@ -6537,7 +6537,7 @@ See also: $(_doc_external("DM/DMGetFieldAvoidTensor")) """ function DMGetFieldAvoidTensor(dm::AbstractDM{PetscLib},f::Int) where {PetscLib} - avoidTensor = Ref{PetscBool}() + avoidTensor = Ref{PetscBool}(PETSC_FALSE) LibPETSc.DMGetFieldAvoidTensor( PetscLib, @@ -6659,8 +6659,8 @@ See also: $(_doc_external("DM/DMGetAdjacency")) """ function DMGetAdjacency(dm::AbstractDM{PetscLib},f::Int) where {PetscLib} - useCone = Ref{PetscBool}() - useClosure = Ref{PetscBool}() + useCone = Ref{PetscBool}(PETSC_FALSE) + useClosure = Ref{PetscBool}(PETSC_FALSE) LibPETSc.DMGetAdjacency( PetscLib, @@ -6754,8 +6754,8 @@ See also: $(_doc_external("DM/DMGetBasicAdjacency")) """ function DMGetBasicAdjacency(dm::AbstractDM{PetscLib}) where {PetscLib} - useCone = Ref{PetscBool}() - useClosure = Ref{PetscBool}() + useCone = Ref{PetscBool}(PETSC_FALSE) + useClosure = Ref{PetscBool}(PETSC_FALSE) LibPETSc.DMGetBasicAdjacency( PetscLib, @@ -8103,7 +8103,7 @@ function DMGetLabelOutput(dm::AbstractDM{PetscLib},name::Vector{Char}) where {Pe # TODO: you have vectors as input; make sure to test that the size of the vectors fits with something like: # @assert length() == n # You can likely also write a multiple dispatch version of this function where vector length is determined automatically - output = Ref{PetscBool}() + output = Ref{PetscBool}(PETSC_FALSE) LibPETSc.DMGetLabelOutput( PetscLib, @@ -8269,7 +8269,7 @@ function DMHasLabel(dm::AbstractDM{PetscLib},name::Vector{Char}) where {PetscLib # TODO: you have vectors as input; make sure to test that the size of the vectors fits with something like: # @assert length() == n # You can likely also write a multiple dispatch version of this function where vector length is determined automatically - hasLabel = Ref{PetscBool}() + hasLabel = Ref{PetscBool}(PETSC_FALSE) LibPETSc.DMHasLabel( PetscLib, @@ -8587,7 +8587,7 @@ end $(_doc_external("DM/DMIsBoundaryPoint")) """ function DMIsBoundaryPoint(dm::AbstractDM{PetscLib},point::Int) where {PetscLib} - isBd = Ref{PetscBool}() + isBd = Ref{PetscBool}(PETSC_FALSE) LibPETSc.DMIsBoundaryPoint( PetscLib, @@ -8675,7 +8675,7 @@ See also: $(_doc_external("DM/DMHasBasisTransform")) """ function DMHasBasisTransform(dm::AbstractDM{PetscLib}) where {PetscLib} - flg = Ref{PetscBool}() + flg = Ref{PetscBool}(PETSC_FALSE) LibPETSc.DMHasBasisTransform( PetscLib, @@ -8796,8 +8796,8 @@ See also: $(_doc_external("DM/DMGetCompatibility")) """ function DMGetCompatibility(dm1::AbstractDM{PetscLib},dm2::AbstractDM{PetscLib}) where {PetscLib} - compatible = Ref{PetscBool}() - set = Ref{PetscBool}() + compatible = Ref{PetscBool}(PETSC_FALSE) + set = Ref{PetscBool}(PETSC_FALSE) LibPETSc.DMGetCompatibility( PetscLib, @@ -8894,7 +8894,7 @@ function DMPolytopeMatchOrientation(PetscLib, ct::DMPolytopeType,sourceCone::Vec # You can likely also write a multiple dispatch version of this function where vector length is determined automatically PetscInt = PetscLib.PetscInt ornt = [PetscInt(1)] - found = Ref{PetscBool}() + found = Ref{PetscBool}(PETSC_FALSE) LibPETSc.DMPolytopeMatchOrientation( PetscLib, @@ -8951,7 +8951,7 @@ function DMPolytopeMatchVertexOrientation(PetscLib, ct::DMPolytopeType,sourceVer # You can likely also write a multiple dispatch version of this function where vector length is determined automatically PetscInt = PetscLib.PetscInt ornt = [PetscInt(1)] - found = Ref{PetscBool}() + found = Ref{PetscBool}(PETSC_FALSE) LibPETSc.DMPolytopeMatchVertexOrientation( PetscLib, @@ -9100,7 +9100,7 @@ function DMPolytopeInCellTest(PetscLib, ct::DMPolytopeType,point::Vector{Float64 # TODO: you have vectors as input; make sure to test that the size of the vectors fits with something like: # @assert length() == n # You can likely also write a multiple dispatch version of this function where vector length is determined automatically - inside = Ref{PetscBool}() + inside = Ref{PetscBool}(PETSC_FALSE) LibPETSc.DMPolytopeInCellTest( PetscLib, diff --git a/src/deprecated/dmstag_wrapped.jl b/src/deprecated/dmstag_wrapped.jl index 7006dfba5..ac1d87101 100644 --- a/src/deprecated/dmstag_wrapped.jl +++ b/src/deprecated/dmstag_wrapped.jl @@ -743,9 +743,9 @@ See also: $(_doc_external("DMStag/DMStagGetIsFirstRank")) """ function DMStagGetIsFirstRank(dm::AbstractDMStag{PetscLib}) where {PetscLib} - isFirstRank0 = Ref{PetscBool}() - isFirstRank1 = Ref{PetscBool}() - isFirstRank2 = Ref{PetscBool}() + isFirstRank0 = Ref{PetscBool}(PETSC_FALSE) + isFirstRank1 = Ref{PetscBool}(PETSC_FALSE) + isFirstRank2 = Ref{PetscBool}(PETSC_FALSE) LibPETSc.DMStagGetIsFirstRank( PetscLib, @@ -789,9 +789,9 @@ See also: $(_doc_external("DMStag/DMStagGetIsLastRank")) """ function DMStagGetIsLastRank(dm::AbstractDMStag{PetscLib}) where {PetscLib} - isLastRank0 = Ref{PetscBool}() - isLastRank1 = Ref{PetscBool}() - isLastRank2 = Ref{PetscBool}() + isLastRank0 = Ref{PetscBool}(PETSC_FALSE) + isLastRank1 = Ref{PetscBool}(PETSC_FALSE) + isLastRank2 = Ref{PetscBool}(PETSC_FALSE) LibPETSc.DMStagGetIsLastRank( PetscLib, diff --git a/src/deprecated/ksp_wrapped.jl b/src/deprecated/ksp_wrapped.jl index b59545ba9..61975c97a 100644 --- a/src/deprecated/ksp_wrapped.jl +++ b/src/deprecated/ksp_wrapped.jl @@ -597,7 +597,7 @@ Level: intermediate $(_doc_external("DM/KSPGetReusePreconditioner")) """ function KSPGetReusePreconditioner(ksp::AbstractKSP{PetscLib}) where {PetscLib} - flag = Ref{PetscBool}() + flag = Ref{PetscBool}(PETSC_FALSE) LibPETSc.KSPGetReusePreconditioner( PetscLib, @@ -938,7 +938,7 @@ Level: intermediate $(_doc_external("DM/KSPGetInitialGuessNonzero")) """ function KSPGetInitialGuessNonzero(ksp::AbstractKSP{PetscLib}) where {PetscLib} - flag = Ref{PetscBool}() + flag = Ref{PetscBool}(PETSC_FALSE) LibPETSc.KSPGetInitialGuessNonzero( PetscLib, @@ -1016,7 +1016,7 @@ Level: intermediate $(_doc_external("DM/KSPGetErrorIfNotConverged")) """ function KSPGetErrorIfNotConverged(ksp::AbstractKSP{PetscLib}) where {PetscLib} - flag = Ref{PetscBool}() + flag = Ref{PetscBool}(PETSC_FALSE) LibPETSc.KSPGetErrorIfNotConverged( PetscLib, @@ -1131,7 +1131,7 @@ Currently this option is not valid for all iterative methods. $(_doc_external("DM/KSPGetComputeEigenvalues")) """ function KSPGetComputeEigenvalues(ksp::AbstractKSP{PetscLib}) where {PetscLib} - flg = Ref{PetscBool}() + flg = Ref{PetscBool}(PETSC_FALSE) LibPETSc.KSPGetComputeEigenvalues( PetscLib, @@ -1225,7 +1225,7 @@ to print the singular values at each iteration of the linear solve. $(_doc_external("DM/KSPGetComputeSingularValues")) """ function KSPGetComputeSingularValues(ksp::AbstractKSP{PetscLib}) where {PetscLib} - flg = Ref{PetscBool}() + flg = Ref{PetscBool}(PETSC_FALSE) LibPETSc.KSPGetComputeSingularValues( PetscLib, @@ -3530,8 +3530,8 @@ automatically created in the call. $(_doc_external("DM/KSPGetOperatorsSet")) """ function KSPGetOperatorsSet(ksp::AbstractKSP{PetscLib}) where {PetscLib} - mat = Ref{PetscBool}() - pmat = Ref{PetscBool}() + mat = Ref{PetscBool}(PETSC_FALSE) + pmat = Ref{PetscBool}(PETSC_FALSE) LibPETSc.KSPGetOperatorsSet( PetscLib, @@ -3704,7 +3704,7 @@ Level: intermediate $(_doc_external("DM/KSPGetDiagonalScale")) """ function KSPGetDiagonalScale(ksp::AbstractKSP{PetscLib}) where {PetscLib} - scale = Ref{PetscBool}() + scale = Ref{PetscBool}(PETSC_FALSE) LibPETSc.KSPGetDiagonalScale( PetscLib, @@ -3782,7 +3782,7 @@ Level: intermediate $(_doc_external("DM/KSPGetDiagonalScaleFix")) """ function KSPGetDiagonalScaleFix(ksp::AbstractKSP{PetscLib}) where {PetscLib} - fix = Ref{PetscBool}() + fix = Ref{PetscBool}(PETSC_FALSE) LibPETSc.KSPGetDiagonalScaleFix( PetscLib, @@ -4726,7 +4726,7 @@ Level: advanced $(_doc_external("DM/KSPGetConvergedNegativeCurvature")) """ function KSPGetConvergedNegativeCurvature(ksp::AbstractKSP{PetscLib}) where {PetscLib} - flg = Ref{PetscBool}() + flg = Ref{PetscBool}(PETSC_FALSE) LibPETSc.KSPGetConvergedNegativeCurvature( PetscLib, @@ -4987,7 +4987,7 @@ Level: advanced $(_doc_external("DM/KSPGetInitialGuessKnoll")) """ function KSPGetInitialGuessKnoll(ksp::AbstractKSP{PetscLib}) where {PetscLib} - flag = Ref{PetscBool}() + flag = Ref{PetscBool}(PETSC_FALSE) LibPETSc.KSPGetInitialGuessKnoll( PetscLib, diff --git a/src/deprecated/mat.jl b/src/deprecated/mat.jl index b82ff332d..66b7b3479 100644 --- a/src/deprecated/mat.jl +++ b/src/deprecated/mat.jl @@ -317,7 +317,7 @@ function Base.:(==)( A::AbstractMat{PetscLib}, B::AbstractMat{PetscLib}, ) where {PetscLib} - fr = Ref{PetscBool}() + fr = Ref{PetscBool}(PETSC_FALSE) LibPETSc.MatEqual(PetscLib, A, B, fr) return fr[] == PETSC_TRUE end @@ -602,7 +602,7 @@ function LinearAlgebra.issymmetric( A::AbstractMat{PetscLib}; tol = 0, ) where {PetscLib} - fr = Ref{PetscBool}() + fr = Ref{PetscBool}(PETSC_FALSE) LibPETSc.MatIsSymmetric(PetscLib, A, tol, fr) return fr[] == PETSC_TRUE end @@ -611,7 +611,7 @@ function LinearAlgebra.ishermitian( A::AbstractMat{PetscLib}; tol = 0, ) where {PetscLib} - fr = Ref{PetscBool}() + fr = Ref{PetscBool}(PETSC_FALSE) LibPETSc.MatIsHermitian(PetscLib, A, tol, fr) return fr[] == PETSC_TRUE end diff --git a/src/deprecated/options.jl b/src/deprecated/options.jl index 253387c57..a68bd61ae 100644 --- a/src/deprecated/options.jl +++ b/src/deprecated/options.jl @@ -140,7 +140,7 @@ end function Base.getindex(opts::AbstractOptions{PetscLib}, key) where {PetscLib} val = Vector{UInt8}(undef, 256) - set_ref = Ref{PetscBool}() + set_ref = Ref{PetscBool}(PETSC_FALSE) LibPETSc.PetscOptionsGetString( PetscLib, opts, diff --git a/src/startup.jl b/src/startup.jl index 008987687..daacf7e0c 100644 --- a/src/startup.jl +++ b/src/startup.jl @@ -31,7 +31,7 @@ end function DataTypeFromString(libhdl::Ptr{Cvoid}, name::AbstractString) PetscDataTypeFromString_ptr = dlsym(libhdl, :PetscDataTypeFromString) dtype_ref = Ref{PetscDataType}() - found_ref = Ref{PetscBool}() + found_ref = Ref{PetscBool}(PETSC_FALSE) @chk ccall( PetscDataTypeFromString_ptr, PetscErrorCode, diff --git a/wrapping/generatejuliabindings.jl b/wrapping/generatejuliabindings.jl index 941149440..bd5388c21 100644 --- a/wrapping/generatejuliabindings.jl +++ b/wrapping/generatejuliabindings.jl @@ -302,7 +302,11 @@ function init_extract_parameters(typename::String, name::String, function_name:: elseif !isarray && isoutput #scalar name_ccall = "$(name)_" - init_arg = "$name_ccall = Ref{$typename}()" + # A PetscBool output is one byte in PETSc 3.25 and four in 3.22, so its slot is + # zeroed before the call. The low byte is then correct for either library. + init_arg = typename == "PetscBool" ? + "$name_ccall = Ref{$typename}(PETSC_FALSE)" : + "$name_ccall = Ref{$typename}()" extract_arg = "$name = $(name_ccall)[]" end