PETSc wrappers
List of of the Julia wrappers for the C functions and objects of the PETSc library. This is an incomplete list, based on what has been used in the past. If you are missing a wrapper for a specific function, it can be easily added using the GridapPETSc.PETSC.@wrapper macro.
GridapPETSc.PETSC.PETSC_DECIDEGridapPETSc.PETSC.PETSC_DEFAULTGridapPETSc.PETSC.PETSC_DETERMINEGridapPETSc.PETSC.ISGridapPETSc.PETSC.InsertModeGridapPETSc.PETSC.KSPGridapPETSc.PETSC.KSPTypeGridapPETSc.PETSC.MatGridapPETSc.PETSC.MatAssemblyTypeGridapPETSc.PETSC.MatDuplicateOptionGridapPETSc.PETSC.MatInfoGridapPETSc.PETSC.MatInfoTypeGridapPETSc.PETSC.MatNullSpaceGridapPETSc.PETSC.MatReuseGridapPETSc.PETSC.MatStructureGridapPETSc.PETSC.MatTypeGridapPETSc.PETSC.NormTypeGridapPETSc.PETSC.PCGridapPETSc.PETSC.PCTypeGridapPETSc.PETSC.PetscBoolGridapPETSc.PETSC.PetscCopyModeGridapPETSc.PETSC.PetscDataTypeGridapPETSc.PETSC.PetscErrorGridapPETSc.PETSC.PetscErrorCodeGridapPETSc.PETSC.PetscIntGridapPETSc.PETSC.PetscLogDoubleGridapPETSc.PETSC.PetscRealGridapPETSc.PETSC.PetscScalarGridapPETSc.PETSC.PetscViewerGridapPETSc.PETSC.SNESGridapPETSc.PETSC.SNESConvergedReasonGridapPETSc.PETSC.VecGridapPETSc.PETSC.VecOptionGridapPETSc.PETSC.ISBlockSetIndicesGridapPETSc.PETSC.ISCreateBlockGridapPETSc.PETSC.ISCreateGeneralGridapPETSc.PETSC.ISCreateStrideGridapPETSc.PETSC.ISDestroyGridapPETSc.PETSC.ISDuplicateGridapPETSc.PETSC.ISGeneralSetIndicesGridapPETSc.PETSC.ISGetIndicesGridapPETSc.PETSC.ISGetSizeGridapPETSc.PETSC.ISSetTypeGridapPETSc.PETSC.KSPCreateGridapPETSc.PETSC.KSPDestroyGridapPETSc.PETSC.KSPGetIterationNumberGridapPETSc.PETSC.KSPGetOperatorsGridapPETSc.PETSC.KSPGetPCGridapPETSc.PETSC.KSPGetResidualNormGridapPETSc.PETSC.KSPSetFromOptionsGridapPETSc.PETSC.KSPSetInitialGuessNonzeroGridapPETSc.PETSC.KSPSetOperatorsGridapPETSc.PETSC.KSPSetOptionsPrefixGridapPETSc.PETSC.KSPSetTolerancesGridapPETSc.PETSC.KSPSetTypeGridapPETSc.PETSC.KSPSetUpGridapPETSc.PETSC.KSPSolveGridapPETSc.PETSC.KSPSolveTransposeGridapPETSc.PETSC.KSPViewGridapPETSc.PETSC.MatAssemblyBeginGridapPETSc.PETSC.MatAssemblyEndGridapPETSc.PETSC.MatConvertGridapPETSc.PETSC.MatCopyGridapPETSc.PETSC.MatCreateAIJGridapPETSc.PETSC.MatCreateMPIAIJWithArraysGridapPETSc.PETSC.MatCreateSeqAIJGridapPETSc.PETSC.MatCreateSeqAIJWithArraysGridapPETSc.PETSC.MatDestroyGridapPETSc.PETSC.MatEqualGridapPETSc.PETSC.MatGetInfoGridapPETSc.PETSC.MatGetSizeGridapPETSc.PETSC.MatGetValuesGridapPETSc.PETSC.MatMultGridapPETSc.PETSC.MatMultAddGridapPETSc.PETSC.MatMumpsSetCntlGridapPETSc.PETSC.MatMumpsSetIcntlGridapPETSc.PETSC.MatNullSpaceCreateGridapPETSc.PETSC.MatNullSpaceCreateRigidBodyGridapPETSc.PETSC.MatNullSpaceDestroyGridapPETSc.PETSC.MatScaleGridapPETSc.PETSC.MatSetBlockSizeGridapPETSc.PETSC.MatSetNearNullSpaceGridapPETSc.PETSC.MatSetNullSpaceGridapPETSc.PETSC.MatSetValuesGridapPETSc.PETSC.MatViewGridapPETSc.PETSC.MatZeroEntriesGridapPETSc.PETSC.PCFactorGetMatrixGridapPETSc.PETSC.PCFactorSetMatSolverTypeGridapPETSc.PETSC.PCFactorSetUpMatSolverTypeGridapPETSc.PETSC.PCGetOperatorsGridapPETSc.PETSC.PCHPDDMHasNeumannMatGridapPETSc.PETSC.PCHPDDMSetAuxiliaryMatGridapPETSc.PETSC.PCHPDDMSetRHSMatGridapPETSc.PETSC.PCHPDDMSetSTShareSubKSPGridapPETSc.PETSC.PCHYPREAMSSetInteriorNodesGridapPETSc.PETSC.PCHYPRESetAlphaPoissonMatrixGridapPETSc.PETSC.PCHYPRESetBetaPoissonMatrixGridapPETSc.PETSC.PCHYPRESetDiscreteCurlGridapPETSc.PETSC.PCHYPRESetDiscreteGradientGridapPETSc.PETSC.PCHYPRESetEdgeConstantVectorsGridapPETSc.PETSC.PCHYPRESetInterpolationsGridapPETSc.PETSC.PCSetCoordinatesGridapPETSc.PETSC.PCSetFromOptionsGridapPETSc.PETSC.PCSetOperatorsGridapPETSc.PETSC.PCSetTypeGridapPETSc.PETSC.PCViewGridapPETSc.PETSC.PETSC_VIEWER_DRAW_GridapPETSc.PETSC.PETSC_VIEWER_STDOUT_GridapPETSc.PETSC.PetscDataTypeFromStringGridapPETSc.PETSC.PetscDataTypeGetSizeGridapPETSc.PETSC.PetscFinalizeGridapPETSc.PETSC.PetscFinalizedGridapPETSc.PETSC.PetscInitializeNoArgumentsGridapPETSc.PETSC.PetscInitializeNoPointersGridapPETSc.PETSC.PetscInitializedGridapPETSc.PETSC.PetscObjectRegisterDestroyGridapPETSc.PETSC.PetscObjectRegisterDestroyAllGridapPETSc.PETSC.SNESConvergedDefaultGridapPETSc.PETSC.SNESCreateGridapPETSc.PETSC.SNESDestroyGridapPETSc.PETSC.SNESGetIterationNumberGridapPETSc.PETSC.SNESGetKSPGridapPETSc.PETSC.SNESGetLinearSolveFailuresGridapPETSc.PETSC.SNESGetLinearSolveIterationsGridapPETSc.PETSC.SNESGetNumberFunctionEvalsGridapPETSc.PETSC.SNESSetConvergenceTestGridapPETSc.PETSC.SNESSetCountersResetGridapPETSc.PETSC.SNESSetFromOptionsGridapPETSc.PETSC.SNESSetFunctionGridapPETSc.PETSC.SNESSetJacobianGridapPETSc.PETSC.SNESSetTypeGridapPETSc.PETSC.SNESSolveGridapPETSc.PETSC.SNESViewGridapPETSc.PETSC.VecAXPBYGridapPETSc.PETSC.VecAXPYGridapPETSc.PETSC.VecAYPXGridapPETSc.PETSC.VecAssemblyBeginGridapPETSc.PETSC.VecAssemblyEndGridapPETSc.PETSC.VecCopyGridapPETSc.PETSC.VecCreateGhostGridapPETSc.PETSC.VecCreateGhostWithArrayGridapPETSc.PETSC.VecCreateMPIGridapPETSc.PETSC.VecCreateSeqGridapPETSc.PETSC.VecCreateSeqWithArrayGridapPETSc.PETSC.VecDestroyGridapPETSc.PETSC.VecDuplicateGridapPETSc.PETSC.VecGetArrayGridapPETSc.PETSC.VecGetArrayReadGridapPETSc.PETSC.VecGetArrayWriteGridapPETSc.PETSC.VecGetLocalSizeGridapPETSc.PETSC.VecGetSizeGridapPETSc.PETSC.VecGetValuesGridapPETSc.PETSC.VecGhostGetLocalFormGridapPETSc.PETSC.VecGhostRestoreLocalFormGridapPETSc.PETSC.VecNormGridapPETSc.PETSC.VecPlaceArrayGridapPETSc.PETSC.VecResetArrayGridapPETSc.PETSC.VecRestoreArrayGridapPETSc.PETSC.VecRestoreArrayReadGridapPETSc.PETSC.VecRestoreArrayWriteGridapPETSc.PETSC.VecScaleGridapPETSc.PETSC.VecSetGridapPETSc.PETSC.VecSetBlockSizeGridapPETSc.PETSC.VecSetOptionGridapPETSc.PETSC.VecSetValuesGridapPETSc.PETSC.VecViewGridapPETSc.PETSC.@PETSC_VIEWER_DRAW_SELFGridapPETSc.PETSC.@PETSC_VIEWER_DRAW_WORLDGridapPETSc.PETSC.@PETSC_VIEWER_STDOUT_SELFGridapPETSc.PETSC.@PETSC_VIEWER_STDOUT_WORLDGridapPETSc.PETSC.@check_error_codeGridapPETSc.PETSC.@wrapper
GridapPETSc.PETSC — ModuleLow level interface with PETSC, which serve as the back-end in GridapPETSc.
The types and functions defined here are almost 1-to-1 to the corresponding C counterparts. In particular, the types defined can be directly used to call C PETSc routines via ccall. When a C function expects a pointer, use a Ref to the corresponding Julia alias. E.g., if an argument is PetscBool * in the C code, pass an object with type Ref{PetscBool} from the Julia code. Using this rule, PETSC.PetscInitialized can be called as
flag = Ref{PetscBool}()
@check_error_code PetscInitialized(flag)
if flag[] == PETSC_TRUE
println("Petsc is initialized!")
endGridapPETSc.PETSC.PETSC_DECIDE — ConstantJulia constant storing the PETSC_DECIDE value.
See PETSc manual.
GridapPETSc.PETSC.PETSC_DEFAULT — ConstantJulia constant storing the PETSC_DEFAULT value.
See PETSc manual.
GridapPETSc.PETSC.PETSC_DETERMINE — ConstantJulia constant storing the PETSC_DETERMINE value.
See PETSc manual.
GridapPETSc.PETSC.IS — TypeJulia alias for the IS C type.
See PETSc manual.
GridapPETSc.PETSC.InsertMode — TypeJulia alias for the InsertMode C enum.
See PETSc manual.
GridapPETSc.PETSC.KSP — TypeJulia alias for the KSP C type.
See PETSc manual.
GridapPETSc.PETSC.KSPType — TypeJulia alias for KSPType C type.
See PETSc manual.
GridapPETSc.PETSC.Mat — TypeJulia alias for the Mat C type.
See PETSc manual.
GridapPETSc.PETSC.MatAssemblyType — TypeJulia alias for the MatAssemblyType C enum.
See PETSc manual.
GridapPETSc.PETSC.MatDuplicateOption — TypeJulia alias for the MatDuplicateOption C enum.
See PETSc manual.
GridapPETSc.PETSC.MatInfo — TypeJulia alias for the MatInfo C struct.
See PETSc manual.
GridapPETSc.PETSC.MatInfoType — TypeJulia alias for the MatInfoType C enum.
See PETSc manual.
GridapPETSc.PETSC.MatNullSpace — TypeJulia alias for the MatNullSpace C type.
See PETSc manual.
GridapPETSc.PETSC.MatReuse — TypeJulia alias for the MatReuse C enum.
See PETSc manual.
GridapPETSc.PETSC.MatStructure — TypeJulia alias for the MatStructure C enum.
See PETSc manual.
GridapPETSc.PETSC.MatType — TypeJulia alias for MatType C type.
See PETSc manual.
GridapPETSc.PETSC.NormType — TypeJulia alias for the NormType C enum.
See PETSc manual.
GridapPETSc.PETSC.PC — TypeJulia alias for the PC C type.
See PETSc manual.
GridapPETSc.PETSC.PCType — TypeJulia alias for PCType C type.
See PETSc manual.
GridapPETSc.PETSC.PetscBool — TypeJulia alias to PetscBool C enum.
See PETSc manual.
GridapPETSc.PETSC.PetscCopyMode — TypeJulia alias for the PetscCopyMode C enum.
See PETSc manual.
GridapPETSc.PETSC.PetscDataType — TypeJulia alias to PetscDataType C enum.
See PETSc manual.
GridapPETSc.PETSC.PetscError — Typestruct PetscError <: Exception
code::PetscErrorCode
endCustom Exception thrown by @check_error_code.
GridapPETSc.PETSC.PetscErrorCode — TypeJulia alias to PetscErrorCode C type.
See PETSc manual.
GridapPETSc.PETSC.PetscInt — TypeJulia alias for PetscInt C type.
See PETSc manual.
GridapPETSc.PETSC.PetscLogDouble — TypeJulia alias to PetscLogDouble C type.
See PETSc manual.
GridapPETSc.PETSC.PetscReal — TypeJulia alias for PetscReal C type.
See PETSc manual.
GridapPETSc.PETSC.PetscScalar — TypeJulia alias for PetscScalar C type.
See PETSc manual.
GridapPETSc.PETSC.PetscViewer — TypeJulia alias for PetscViewer C type.
See PETSc manual.
GridapPETSc.PETSC.SNES — TypeJulia alias for the SNES C type.
See PETSc manual.
GridapPETSc.PETSC.SNESConvergedReason — TypeJulia alias to SNESConvergedReason C enum.
See PETSc manual.
GridapPETSc.PETSC.Vec — TypeJulia alias for the Vec C type.
See PETSc manual.
GridapPETSc.PETSC.VecOption — TypeJulia alias for the VecOption C enum.
See PETSc manual.
GridapPETSc.PETSC.ISBlockSetIndices — MethodISBlockSetIndices(is, bs, n, idx, mode)See PETSc manual.
GridapPETSc.PETSC.ISCreateBlock — MethodISCreateBlock(comm, bs, n, idx, mode, is)See PETSc manual.
GridapPETSc.PETSC.ISCreateGeneral — MethodISCreateGeneral(comm, n, idx, mode, is)See PETSc manual.
GridapPETSc.PETSC.ISCreateStride — MethodISCreateStride(comm, n, first, step, is)See PETSc manual.
GridapPETSc.PETSC.ISDestroy — MethodISDestroy(is)See PETSc manual.
GridapPETSc.PETSC.ISDuplicate — MethodISDuplicate(is, newis)See PETSc manual.
GridapPETSc.PETSC.ISGeneralSetIndices — MethodISGeneralSetIndices(is, n, idx, mode)See PETSc manual.
GridapPETSc.PETSC.ISGetIndices — MethodISGetIndices(is, ptr)See PETSc manual.
GridapPETSc.PETSC.ISGetSize — MethodISGetSize(is, n)See PETSc manual.
GridapPETSc.PETSC.ISSetType — MethodISSetType(is, method)See PETSc manual.
GridapPETSc.PETSC.KSPCreate — MethodKSPCreate(comm, inksp)See PETSc manual.
GridapPETSc.PETSC.KSPDestroy — MethodKSPDestroy(ksp)See PETSc manual.
GridapPETSc.PETSC.KSPGetIterationNumber — MethodKSPGetIterationNumber(ksp, its)See PETSc manual.
GridapPETSc.PETSC.KSPGetOperators — MethodKSPGetOperators(ksp, Amat, Pmat)See PETSc manual.
GridapPETSc.PETSC.KSPGetPC — MethodKSPGetPC(ksp, pc)See PETSc manual.
GridapPETSc.PETSC.KSPGetResidualNorm — MethodKSPGetResidualNorm(ksp, rnorm)See PETSc manual.
GridapPETSc.PETSC.KSPSetFromOptions — MethodKSPSetFromOptions(ksp)See PETSc manual.
GridapPETSc.PETSC.KSPSetInitialGuessNonzero — MethodKSPSetInitialGuessNonzero(ksp, flg)See PETSc manual.
GridapPETSc.PETSC.KSPSetOperators — MethodKSPSetOperators(ksp, Amat, Pmat)See PETSc manual.
GridapPETSc.PETSC.KSPSetOptionsPrefix — MethodKSPSetOptionsPrefix(ksp, prefix)See PETSc manual.
GridapPETSc.PETSC.KSPSetTolerances — MethodKSPSetTolerances(ksp, rtol, abstol, dtol, maxits)See PETSc manual.
GridapPETSc.PETSC.KSPSetType — MethodKSPSetType(ksp, typ)See PETSc manual.
GridapPETSc.PETSC.KSPSetUp — MethodKSPSetUp(ksp)See PETSc manual.
GridapPETSc.PETSC.KSPSolve — MethodKSPSolve(ksp, b, x)See PETSc manual.
GridapPETSc.PETSC.KSPSolveTranspose — MethodKSPSolveTranspose(ksp, b, x)See PETSc manual.
GridapPETSc.PETSC.KSPView — MethodKSPView(ksp, viewer)See PETSc manual.
GridapPETSc.PETSC.MatAssemblyBegin — MethodMatAssemblyBegin(mat, typ)See PETSc manual.
GridapPETSc.PETSC.MatAssemblyEnd — MethodMatAssemblyEnd(mat, typ)See PETSc manual.
GridapPETSc.PETSC.MatConvert — MethodMatConvert(mat, newtype, reuse, M)See PETSc manual.
GridapPETSc.PETSC.MatCopy — MethodMatCopy(A, B, str)See PETSc manual.
GridapPETSc.PETSC.MatCreateAIJ — MethodMatCreateAIJ(comm, m, n, M, N, d_nz, d_nnz, o_nz, o_nnz, mat)See PETSc manual.
GridapPETSc.PETSC.MatCreateMPIAIJWithArrays — MethodMatCreateMPIAIJWithArrays(comm, m, n, M, N, i, j, a, mat)See PETSc manual.
GridapPETSc.PETSC.MatCreateSeqAIJ — MethodMatCreateSeqAIJ(comm, m, n, nz, nnz, mat)See PETSc manual.
GridapPETSc.PETSC.MatCreateSeqAIJWithArrays — MethodMatCreateSeqAIJWithArrays(comm, m, n, i, j, a, mat)See PETSc manual.
GridapPETSc.PETSC.MatDestroy — MethodMatDestroy(A)See PETSc manual.
GridapPETSc.PETSC.MatEqual — MethodMatEqual(A, B, flg)See PETSc manual.
GridapPETSc.PETSC.MatGetInfo — MethodMatGetInfo(mat, flag, info)See PETSc manual.
GridapPETSc.PETSC.MatGetSize — MethodMatGetSize(mat, m, n)See PETSc manual.
GridapPETSc.PETSC.MatGetValues — MethodMatGetValues(mat, m, idxm, n, idxn, v)See PETSc manual.
GridapPETSc.PETSC.MatMult — MethodMatMult(mat, x, y)See PETSc manual.
GridapPETSc.PETSC.MatMultAdd — MethodMatMultAdd(mat, v1, v2, v3)See PETSc manual.
GridapPETSc.PETSC.MatMumpsSetCntl — MethodMatMumpsSetCntl(mat, icntl, val)See PETSc manual.
GridapPETSc.PETSC.MatMumpsSetIcntl — MethodMatMumpsSetIcntl(mat, icntl, val)See PETSc manual.
GridapPETSc.PETSC.MatNullSpaceCreate — MethodMatNullSpaceCreate(comm, has_cnst, n, vecs, sp)See PETSc manual.
GridapPETSc.PETSC.MatNullSpaceCreateRigidBody — MethodMatNullSpaceCreateRigidBody(coords, sp)See PETSc manual.
GridapPETSc.PETSC.MatNullSpaceDestroy — MethodMatNullSpaceDestroy(ns)See PETSc manual.
GridapPETSc.PETSC.MatScale — MethodMatScale(mat, alpha)See PETSc manual.
GridapPETSc.PETSC.MatSetBlockSize — MethodMatSetBlockSize(mat, bs)See PETSc manual.
GridapPETSc.PETSC.MatSetNearNullSpace — MethodMatSetNearNullSpace(mat, nullsp)See PETSc manual.
GridapPETSc.PETSC.MatSetNullSpace — MethodMatSetNullSpace(mat, nullsp)See PETSc manual.
GridapPETSc.PETSC.MatSetValues — MethodMatSetValues(mat, m, idxm, n, idxn, v, addv)See PETSc manual.
GridapPETSc.PETSC.MatView — MethodMatView(mat, viewer)See PETSc manual.
GridapPETSc.PETSC.MatZeroEntries — MethodMatZeroEntries(mat)See PETSc manual.
GridapPETSc.PETSC.PCFactorGetMatrix — MethodPCFactorGetMatrix(ksp, mat)See PETSc manual.
GridapPETSc.PETSC.PCFactorSetMatSolverType — MethodPCFactorSetMatSolverType(pc, typ)See PETSc manual.
GridapPETSc.PETSC.PCFactorSetUpMatSolverType — MethodPCFactorSetUpMatSolverType(pc)See PETSc manual.
GridapPETSc.PETSC.PCGetOperators — MethodPCGetOperators(pc, Amat, Pmat)See PETSc manual.
GridapPETSc.PETSC.PCHPDDMHasNeumannMat — MethodPCHPDDMHasNeumannMat(pc, has)See PETSc manual.
GridapPETSc.PETSC.PCHPDDMSetAuxiliaryMat — MethodPCHPDDMSetAuxiliaryMat(pc, is, mat, setup, ctx)See PETSc manual.
GridapPETSc.PETSC.PCHPDDMSetRHSMat — MethodPCHPDDMSetRHSMat(pc, mat)See PETSc manual.
GridapPETSc.PETSC.PCHPDDMSetSTShareSubKSP — MethodPCHPDDMSetSTShareSubKSP(pc, share)See PETSc manual.
GridapPETSc.PETSC.PCHYPREAMSSetInteriorNodes — MethodPCHYPREAMSSetInteriorNodes(pc, interior)See PETSc manual.
GridapPETSc.PETSC.PCHYPRESetAlphaPoissonMatrix — MethodPCHYPRESetAlphaPoissonMatrix(pc, A)See PETSc manual.
GridapPETSc.PETSC.PCHYPRESetBetaPoissonMatrix — MethodPCHYPRESetBetaPoissonMatrix(pc, A)See PETSc manual.
GridapPETSc.PETSC.PCHYPRESetDiscreteCurl — MethodPCHYPRESetDiscreteCurl(pc, C)See PETSc manual.
GridapPETSc.PETSC.PCHYPRESetDiscreteGradient — MethodPCHYPRESetDiscreteGradient(pc, G)See PETSc manual.
GridapPETSc.PETSC.PCHYPRESetEdgeConstantVectors — MethodPCHYPRESetEdgeConstantVectors(pc, ozz, zoz, zzo)See PETSc manual.
GridapPETSc.PETSC.PCHYPRESetInterpolations — MethodPCHYPRESetInterpolations(pc, dim, RT_PiFull, RT_Pi, ND_PiFull, ND_Pi)See PETSc manual.
GridapPETSc.PETSC.PCSetCoordinates — MethodPCSetCoordinates(pc, dim, nloc, coords)See PETSc manual.
GridapPETSc.PETSC.PCSetFromOptions — MethodPCSetFromOptions(pc)See PETSc manual.
GridapPETSc.PETSC.PCSetOperators — MethodPCSetOperators(pc, Amat, Pmat)See PETSc manual.
GridapPETSc.PETSC.PCSetType — MethodPCSetType(pc, typ)See PETSc manual.
GridapPETSc.PETSC.PCView — MethodPCView(pc, viewer)See PETSc manual.
GridapPETSc.PETSC.PETSC_VIEWER_DRAW_ — MethodPETSC_VIEWER_DRAW_(comm)See PETSc manual.
GridapPETSc.PETSC.PETSC_VIEWER_STDOUT_ — MethodPETSC_VIEWER_STDOUT_(comm)See PETSc manual.
GridapPETSc.PETSC.PetscDataTypeFromString — MethodPetscDataTypeFromString(name,ptype,found)See PETSc manual.
GridapPETSc.PETSC.PetscDataTypeGetSize — MethodPetscDataTypeGetSize(ptype,size)See PETSc manual.
GridapPETSc.PETSC.PetscFinalize — MethodPetscFinalize()See PETSc manual.
GridapPETSc.PETSC.PetscFinalized — MethodPetscFinalized(flag)See PETSc manual.
GridapPETSc.PETSC.PetscInitializeNoArguments — MethodPetscInitializeNoArguments()See PETSc manual.
GridapPETSc.PETSC.PetscInitializeNoPointers — MethodPetscInitializeNoPointers(argc, args, filename, help)GridapPETSc.PETSC.PetscInitialized — MethodPetscInitialized(flag)See PETSc manual.
GridapPETSc.PETSC.PetscObjectRegisterDestroy — MethodPetscObjectRegisterDestroy(obj)See PETSc manual.
GridapPETSc.PETSC.PetscObjectRegisterDestroyAll — MethodPetscObjectRegisterDestroyAll()See PETSc manual.
GridapPETSc.PETSC.SNESConvergedDefault — MethodSNESConvergedDefault(snes, it, xnorm, gnorm, f, reason, user)See PETSc manual.
GridapPETSc.PETSC.SNESCreate — MethodSNESCreate(comm, snes)See PETSc manual.
GridapPETSc.PETSC.SNESDestroy — MethodSNESDestroy(snes)See PETSc manual.
GridapPETSc.PETSC.SNESGetIterationNumber — MethodSNESGetIterationNumber(snes, iter)See PETSc manual.
GridapPETSc.PETSC.SNESGetKSP — MethodSNESGetKSP(snes, ksp)See PETSc manual.
GridapPETSc.PETSC.SNESGetLinearSolveFailures — MethodSNESGetLinearSolveFailures(snes, nfails)See PETSc manual.
GridapPETSc.PETSC.SNESGetLinearSolveIterations — MethodSNESGetLinearSolveIterations(snes, iter)See PETSc manual.
GridapPETSc.PETSC.SNESGetNumberFunctionEvals — MethodSNESGetNumberFunctionEvals(snes, nfuncs)See PETSc manual.
GridapPETSc.PETSC.SNESSetConvergenceTest — MethodSNESSetConvergenceTest(snes, convtest, cctx, destroy)See PETSc manual.
GridapPETSc.PETSC.SNESSetCountersReset — MethodSNESSetCountersReset(snes, reset)See PETSc manual.
GridapPETSc.PETSC.SNESSetFromOptions — MethodSNESSetFromOptions(snes)See PETSc manual.
GridapPETSc.PETSC.SNESSetFunction — MethodSNESSetFunction(snes, vec, fptr, ctx)See PETSc manual.
GridapPETSc.PETSC.SNESSetJacobian — MethodSNESSetJacobian(snes, A, P, jacptr, ctx)See PETSc manual.
GridapPETSc.PETSC.SNESSetType — MethodSNESSetType(snes, type)See PETSc manual.
GridapPETSc.PETSC.SNESSolve — MethodSNESSolve(snes, b, x)See PETSc manual.
GridapPETSc.PETSC.SNESView — MethodSNESView(snes, viewer)See PETSc manual.
GridapPETSc.PETSC.VecAXPBY — MethodVecAXPBY(y, alpha, beta, x)See PETSc manual.
GridapPETSc.PETSC.VecAXPY — MethodVecAXPY(y, alpha, x)See PETSc manual.
GridapPETSc.PETSC.VecAYPX — MethodVecAYPX(y, beta, x)See PETSc manual.
GridapPETSc.PETSC.VecAssemblyBegin — MethodVecAssemblyBegin(vec)See PETSc manual.
GridapPETSc.PETSC.VecAssemblyEnd — MethodVecAssemblyEnd(vec)See PETSc manual.
GridapPETSc.PETSC.VecCopy — MethodVecCopy(x, y)See PETSc manual.
GridapPETSc.PETSC.VecCreateGhost — MethodVecCreateGhost(comm, n, N, nghost, ghosts, vv)See PETSc manual.
GridapPETSc.PETSC.VecCreateGhostWithArray — MethodVecCreateGhostWithArray(comm, n, N, nghost, ghosts, array, vv)See PETSc manual.
GridapPETSc.PETSC.VecCreateMPI — MethodVecCreateMPI(comm, n, N, v)See PETSc manual.
GridapPETSc.PETSC.VecCreateSeq — MethodVecCreateSeq(comm, n, vec)See PETSc manual.
GridapPETSc.PETSC.VecCreateSeqWithArray — MethodVecCreateSeqWithArray(comm, bs, n, array, vec)See PETSc manual.
GridapPETSc.PETSC.VecDestroy — MethodVecDestroy(vec)See PETSc manual.
GridapPETSc.PETSC.VecDuplicate — MethodVecDuplicate(v, newv)See PETSc manual.
GridapPETSc.PETSC.VecGetArray — MethodVecGetArray(x, a)See PETSc manual.
GridapPETSc.PETSC.VecGetArrayRead — MethodVecGetArrayRead(x, a)See PETSc manual.
GridapPETSc.PETSC.VecGetArrayWrite — MethodVecGetArrayWrite(x, a)See PETSc manual.
GridapPETSc.PETSC.VecGetLocalSize — MethodVecGetLocalSize(vec, n)See PETSc manual.
GridapPETSc.PETSC.VecGetSize — MethodVecGetSize(vec, n)See PETSc manual.
GridapPETSc.PETSC.VecGetValues — MethodVecGetValues(x, ni, ix, y)See PETSc manual.
GridapPETSc.PETSC.VecGhostGetLocalForm — MethodVecGhostGetLocalForm(g, l)See PETSc manual.
GridapPETSc.PETSC.VecGhostRestoreLocalForm — MethodVecGhostRestoreLocalForm(g, l)See PETSc manual.
GridapPETSc.PETSC.VecNorm — MethodVecNorm(x, typ, val)See PETSc manual.
GridapPETSc.PETSC.VecPlaceArray — MethodVecPlaceArray(vec, array)See PETSc manual.
GridapPETSc.PETSC.VecResetArray — MethodVecResetArray(vec)See PETSc manual.
GridapPETSc.PETSC.VecRestoreArray — MethodVecRestoreArray(x, a)See PETSc manual.
GridapPETSc.PETSC.VecRestoreArrayRead — MethodVecRestoreArrayRead(x, a)See PETSc manual.
GridapPETSc.PETSC.VecRestoreArrayWrite — MethodVecRestoreArrayWrite(x, a)See PETSc manual.
GridapPETSc.PETSC.VecScale — MethodVecScale(x, alpha)See PETSc manual.
GridapPETSc.PETSC.VecSet — MethodVecSet(x, alpha)See PETSc manual.
GridapPETSc.PETSC.VecSetBlockSize — MethodVecSetBlockSize(v, bs)See PETSc manual.
GridapPETSc.PETSC.VecSetOption — MethodVecSetOption(x, op, flg)See PETSc manual.
GridapPETSc.PETSC.VecSetValues — MethodVecSetValues(x, ni, ix, y, iora)See PETSc manual.
GridapPETSc.PETSC.VecView — MethodVecView(vec, viewer)See PETSc manual.
GridapPETSc.PETSC.@PETSC_VIEWER_DRAW_SELF — Macro@PETSC_VIEWER_DRAW_SELFSee PETSc manual.
GridapPETSc.PETSC.@PETSC_VIEWER_DRAW_WORLD — Macro@PETSC_VIEWER_DRAW_WORLDSee PETSc manual.
GridapPETSc.PETSC.@PETSC_VIEWER_STDOUT_SELF — Macro@PETSC_VIEWER_STDOUT_SELFSee PETSc manual.
GridapPETSc.PETSC.@PETSC_VIEWER_STDOUT_WORLD — Macro@PETSC_VIEWER_STDOUT_WORLDSee PETSc manual.
GridapPETSc.PETSC.@check_error_code — Macro@check_error_code exprCheck if expr returns an error code equal to zero(PetscErrorCode). If not, throw an instance of PetscError.
GridapPETSc.PETSC.@wrapper — Macromacro wrapper(fn,rt,argts,args,url)Wrapper macro for PETSc's C functions.
Usage:
To create a wrapper for PETSc's C function VecCreateSeq:
@wrapper(:VecCreateSeq,PetscErrorCode,(MPI.Comm,PetscInt,Ptr{Vec}),(comm,n,vec),"https://petsc.org/release/manualpages/Vec/VecCreateSeq/")Many more examples can be found in the source code of the PETSc module.