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 — Module
Low 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 — Constant
Julia constant storing the PETSC_DECIDE value.
See PETSc manual.
GridapPETSc.PETSC.PETSC_DEFAULT — Constant
Julia constant storing the PETSC_DEFAULT value.
See PETSc manual.
GridapPETSc.PETSC.PETSC_DETERMINE — Constant
Julia constant storing the PETSC_DETERMINE value.
See PETSc manual.
GridapPETSc.PETSC.IS — Type
Julia alias for the IS C type.
See PETSc manual.
GridapPETSc.PETSC.InsertMode — Type
Julia alias for the InsertMode C enum.
See PETSc manual.
GridapPETSc.PETSC.KSP — Type
Julia alias for the KSP C type.
See PETSc manual.
GridapPETSc.PETSC.KSPType — Type
Julia alias for KSPType C type.
See PETSc manual.
GridapPETSc.PETSC.Mat — Type
Julia alias for the Mat C type.
See PETSc manual.
GridapPETSc.PETSC.MatAssemblyType — Type
Julia alias for the MatAssemblyType C enum.
See PETSc manual.
GridapPETSc.PETSC.MatDuplicateOption — Type
Julia alias for the MatDuplicateOption C enum.
See PETSc manual.
GridapPETSc.PETSC.MatInfo — Type
Julia alias for the MatInfo C struct.
See PETSc manual.
GridapPETSc.PETSC.MatInfoType — Type
Julia alias for the MatInfoType C enum.
See PETSc manual.
GridapPETSc.PETSC.MatNullSpace — Type
Julia alias for the MatNullSpace C type.
See PETSc manual.
GridapPETSc.PETSC.MatReuse — Type
Julia alias for the MatReuse C enum.
See PETSc manual.
GridapPETSc.PETSC.MatStructure — Type
Julia alias for the MatStructure C enum.
See PETSc manual.
GridapPETSc.PETSC.MatType — Type
Julia alias for MatType C type.
See PETSc manual.
GridapPETSc.PETSC.NormType — Type
Julia alias for the NormType C enum.
See PETSc manual.
GridapPETSc.PETSC.PC — Type
Julia alias for the PC C type.
See PETSc manual.
GridapPETSc.PETSC.PCType — Type
Julia alias for PCType C type.
See PETSc manual.
GridapPETSc.PETSC.PetscBool — Type
Julia alias to PetscBool C enum.
See PETSc manual.
GridapPETSc.PETSC.PetscCopyMode — Type
Julia alias for the PetscCopyMode C enum.
See PETSc manual.
GridapPETSc.PETSC.PetscDataType — Type
Julia alias to PetscDataType C enum.
See PETSc manual.
GridapPETSc.PETSC.PetscError — Type
struct PetscError <: Exception
code::PetscErrorCode
endCustom Exception thrown by @check_error_code.
GridapPETSc.PETSC.PetscErrorCode — Type
Julia alias to PetscErrorCode C type.
See PETSc manual.
GridapPETSc.PETSC.PetscInt — Type
Julia alias for PetscInt C type.
See PETSc manual.
GridapPETSc.PETSC.PetscLogDouble — Type
Julia alias to PetscLogDouble C type.
See PETSc manual.
GridapPETSc.PETSC.PetscReal — Type
Julia alias for PetscReal C type.
See PETSc manual.
GridapPETSc.PETSC.PetscScalar — Type
Julia alias for PetscScalar C type.
See PETSc manual.
GridapPETSc.PETSC.PetscViewer — Type
Julia alias for PetscViewer C type.
See PETSc manual.
GridapPETSc.PETSC.SNES — Type
Julia alias for the SNES C type.
See PETSc manual.
GridapPETSc.PETSC.SNESConvergedReason — Type
Julia alias to SNESConvergedReason C enum.
See PETSc manual.
GridapPETSc.PETSC.Vec — Type
Julia alias for the Vec C type.
See PETSc manual.
GridapPETSc.PETSC.VecOption — Type
Julia alias for the VecOption C enum.
See PETSc manual.
GridapPETSc.PETSC.ISBlockSetIndices — Method
ISBlockSetIndices(is, bs, n, idx, mode)See PETSc manual.
GridapPETSc.PETSC.ISCreateBlock — Method
ISCreateBlock(comm, bs, n, idx, mode, is)See PETSc manual.
GridapPETSc.PETSC.ISCreateGeneral — Method
ISCreateGeneral(comm, n, idx, mode, is)See PETSc manual.
GridapPETSc.PETSC.ISCreateStride — Method
ISCreateStride(comm, n, first, step, is)See PETSc manual.
GridapPETSc.PETSC.ISDestroy — Method
ISDestroy(is)See PETSc manual.
GridapPETSc.PETSC.ISDuplicate — Method
ISDuplicate(is, newis)See PETSc manual.
GridapPETSc.PETSC.ISGeneralSetIndices — Method
ISGeneralSetIndices(is, n, idx, mode)See PETSc manual.
GridapPETSc.PETSC.ISGetIndices — Method
ISGetIndices(is, ptr)See PETSc manual.
GridapPETSc.PETSC.ISGetSize — Method
ISGetSize(is, n)See PETSc manual.
GridapPETSc.PETSC.ISSetType — Method
ISSetType(is, method)See PETSc manual.
GridapPETSc.PETSC.KSPCreate — Method
KSPCreate(comm, inksp)See PETSc manual.
GridapPETSc.PETSC.KSPDestroy — Method
KSPDestroy(ksp)See PETSc manual.
GridapPETSc.PETSC.KSPGetIterationNumber — Method
KSPGetIterationNumber(ksp, its)See PETSc manual.
GridapPETSc.PETSC.KSPGetOperators — Method
KSPGetOperators(ksp, Amat, Pmat)See PETSc manual.
GridapPETSc.PETSC.KSPGetPC — Method
KSPGetPC(ksp, pc)See PETSc manual.
GridapPETSc.PETSC.KSPGetResidualNorm — Method
KSPGetResidualNorm(ksp, rnorm)See PETSc manual.
GridapPETSc.PETSC.KSPSetFromOptions — Method
KSPSetFromOptions(ksp)See PETSc manual.
GridapPETSc.PETSC.KSPSetInitialGuessNonzero — Method
KSPSetInitialGuessNonzero(ksp, flg)See PETSc manual.
GridapPETSc.PETSC.KSPSetOperators — Method
KSPSetOperators(ksp, Amat, Pmat)See PETSc manual.
GridapPETSc.PETSC.KSPSetOptionsPrefix — Method
KSPSetOptionsPrefix(ksp, prefix)See PETSc manual.
GridapPETSc.PETSC.KSPSetTolerances — Method
KSPSetTolerances(ksp, rtol, abstol, dtol, maxits)See PETSc manual.
GridapPETSc.PETSC.KSPSetType — Method
KSPSetType(ksp, typ)See PETSc manual.
GridapPETSc.PETSC.KSPSetUp — Method
KSPSetUp(ksp)See PETSc manual.
GridapPETSc.PETSC.KSPSolve — Method
KSPSolve(ksp, b, x)See PETSc manual.
GridapPETSc.PETSC.KSPSolveTranspose — Method
KSPSolveTranspose(ksp, b, x)See PETSc manual.
GridapPETSc.PETSC.KSPView — Method
KSPView(ksp, viewer)See PETSc manual.
GridapPETSc.PETSC.MatAssemblyBegin — Method
MatAssemblyBegin(mat, typ)See PETSc manual.
GridapPETSc.PETSC.MatAssemblyEnd — Method
MatAssemblyEnd(mat, typ)See PETSc manual.
GridapPETSc.PETSC.MatConvert — Method
MatConvert(mat, newtype, reuse, M)See PETSc manual.
GridapPETSc.PETSC.MatCopy — Method
MatCopy(A, B, str)See PETSc manual.
GridapPETSc.PETSC.MatCreateAIJ — Method
MatCreateAIJ(comm, m, n, M, N, d_nz, d_nnz, o_nz, o_nnz, mat)See PETSc manual.
GridapPETSc.PETSC.MatCreateMPIAIJWithArrays — Method
MatCreateMPIAIJWithArrays(comm, m, n, M, N, i, j, a, mat)See PETSc manual.
GridapPETSc.PETSC.MatCreateSeqAIJ — Method
MatCreateSeqAIJ(comm, m, n, nz, nnz, mat)See PETSc manual.
GridapPETSc.PETSC.MatCreateSeqAIJWithArrays — Method
MatCreateSeqAIJWithArrays(comm, m, n, i, j, a, mat)See PETSc manual.
GridapPETSc.PETSC.MatDestroy — Method
MatDestroy(A)See PETSc manual.
GridapPETSc.PETSC.MatEqual — Method
MatEqual(A, B, flg)See PETSc manual.
GridapPETSc.PETSC.MatGetInfo — Method
MatGetInfo(mat, flag, info)See PETSc manual.
GridapPETSc.PETSC.MatGetSize — Method
MatGetSize(mat, m, n)See PETSc manual.
GridapPETSc.PETSC.MatGetValues — Method
MatGetValues(mat, m, idxm, n, idxn, v)See PETSc manual.
GridapPETSc.PETSC.MatMult — Method
MatMult(mat, x, y)See PETSc manual.
GridapPETSc.PETSC.MatMultAdd — Method
MatMultAdd(mat, v1, v2, v3)See PETSc manual.
GridapPETSc.PETSC.MatMumpsSetCntl — Method
MatMumpsSetCntl(mat, icntl, val)See PETSc manual.
GridapPETSc.PETSC.MatMumpsSetIcntl — Method
MatMumpsSetIcntl(mat, icntl, val)See PETSc manual.
GridapPETSc.PETSC.MatNullSpaceCreate — Method
MatNullSpaceCreate(comm, has_cnst, n, vecs, sp)See PETSc manual.
GridapPETSc.PETSC.MatNullSpaceCreateRigidBody — Method
MatNullSpaceCreateRigidBody(coords, sp)See PETSc manual.
GridapPETSc.PETSC.MatNullSpaceDestroy — Method
MatNullSpaceDestroy(ns)See PETSc manual.
GridapPETSc.PETSC.MatScale — Method
MatScale(mat, alpha)See PETSc manual.
GridapPETSc.PETSC.MatSetBlockSize — Method
MatSetBlockSize(mat, bs)See PETSc manual.
GridapPETSc.PETSC.MatSetNearNullSpace — Method
MatSetNearNullSpace(mat, nullsp)See PETSc manual.
GridapPETSc.PETSC.MatSetNullSpace — Method
MatSetNullSpace(mat, nullsp)See PETSc manual.
GridapPETSc.PETSC.MatSetValues — Method
MatSetValues(mat, m, idxm, n, idxn, v, addv)See PETSc manual.
GridapPETSc.PETSC.MatView — Method
MatView(mat, viewer)See PETSc manual.
GridapPETSc.PETSC.MatZeroEntries — Method
MatZeroEntries(mat)See PETSc manual.
GridapPETSc.PETSC.PCFactorGetMatrix — Method
PCFactorGetMatrix(ksp, mat)See PETSc manual.
GridapPETSc.PETSC.PCFactorSetMatSolverType — Method
PCFactorSetMatSolverType(pc, typ)See PETSc manual.
GridapPETSc.PETSC.PCFactorSetUpMatSolverType — Method
PCFactorSetUpMatSolverType(pc)See PETSc manual.
GridapPETSc.PETSC.PCGetOperators — Method
PCGetOperators(pc, Amat, Pmat)See PETSc manual.
GridapPETSc.PETSC.PCHPDDMHasNeumannMat — Method
PCHPDDMHasNeumannMat(pc, has)See PETSc manual.
GridapPETSc.PETSC.PCHPDDMSetAuxiliaryMat — Method
PCHPDDMSetAuxiliaryMat(pc, is, mat, setup, ctx)See PETSc manual.
GridapPETSc.PETSC.PCHPDDMSetRHSMat — Method
PCHPDDMSetRHSMat(pc, mat)See PETSc manual.
GridapPETSc.PETSC.PCHPDDMSetSTShareSubKSP — Method
PCHPDDMSetSTShareSubKSP(pc, share)See PETSc manual.
GridapPETSc.PETSC.PCHYPREAMSSetInteriorNodes — Method
PCHYPREAMSSetInteriorNodes(pc, interior)See PETSc manual.
GridapPETSc.PETSC.PCHYPRESetAlphaPoissonMatrix — Method
PCHYPRESetAlphaPoissonMatrix(pc, A)See PETSc manual.
GridapPETSc.PETSC.PCHYPRESetBetaPoissonMatrix — Method
PCHYPRESetBetaPoissonMatrix(pc, A)See PETSc manual.
GridapPETSc.PETSC.PCHYPRESetDiscreteCurl — Method
PCHYPRESetDiscreteCurl(pc, C)See PETSc manual.
GridapPETSc.PETSC.PCHYPRESetDiscreteGradient — Method
PCHYPRESetDiscreteGradient(pc, G)See PETSc manual.
GridapPETSc.PETSC.PCHYPRESetEdgeConstantVectors — Method
PCHYPRESetEdgeConstantVectors(pc, ozz, zoz, zzo)See PETSc manual.
GridapPETSc.PETSC.PCHYPRESetInterpolations — Method
PCHYPRESetInterpolations(pc, dim, RT_PiFull, RT_Pi, ND_PiFull, ND_Pi)See PETSc manual.
GridapPETSc.PETSC.PCSetCoordinates — Method
PCSetCoordinates(pc, dim, nloc, coords)See PETSc manual.
GridapPETSc.PETSC.PCSetFromOptions — Method
PCSetFromOptions(pc)See PETSc manual.
GridapPETSc.PETSC.PCSetOperators — Method
PCSetOperators(pc, Amat, Pmat)See PETSc manual.
GridapPETSc.PETSC.PCSetType — Method
PCSetType(pc, typ)See PETSc manual.
GridapPETSc.PETSC.PCView — Method
PCView(pc, viewer)See PETSc manual.
GridapPETSc.PETSC.PETSC_VIEWER_DRAW_ — Method
PETSC_VIEWER_DRAW_(comm)See PETSc manual.
GridapPETSc.PETSC.PETSC_VIEWER_STDOUT_ — Method
PETSC_VIEWER_STDOUT_(comm)See PETSc manual.
GridapPETSc.PETSC.PetscDataTypeFromString — Method
PetscDataTypeFromString(name,ptype,found)See PETSc manual.
GridapPETSc.PETSC.PetscDataTypeGetSize — Method
PetscDataTypeGetSize(ptype,size)See PETSc manual.
GridapPETSc.PETSC.PetscFinalize — Method
PetscFinalize()See PETSc manual.
GridapPETSc.PETSC.PetscFinalized — Method
PetscFinalized(flag)See PETSc manual.
GridapPETSc.PETSC.PetscInitializeNoArguments — Method
PetscInitializeNoArguments()See PETSc manual.
GridapPETSc.PETSC.PetscInitializeNoPointers — Method
PetscInitializeNoPointers(argc, args, filename, help)GridapPETSc.PETSC.PetscInitialized — Method
PetscInitialized(flag)See PETSc manual.
GridapPETSc.PETSC.PetscObjectRegisterDestroy — Method
PetscObjectRegisterDestroy(obj)See PETSc manual.
GridapPETSc.PETSC.PetscObjectRegisterDestroyAll — Method
PetscObjectRegisterDestroyAll()See PETSc manual.
GridapPETSc.PETSC.SNESConvergedDefault — Method
SNESConvergedDefault(snes, it, xnorm, gnorm, f, reason, user)See PETSc manual.
GridapPETSc.PETSC.SNESCreate — Method
SNESCreate(comm, snes)See PETSc manual.
GridapPETSc.PETSC.SNESDestroy — Method
SNESDestroy(snes)See PETSc manual.
GridapPETSc.PETSC.SNESGetIterationNumber — Method
SNESGetIterationNumber(snes, iter)See PETSc manual.
GridapPETSc.PETSC.SNESGetKSP — Method
SNESGetKSP(snes, ksp)See PETSc manual.
GridapPETSc.PETSC.SNESGetLinearSolveFailures — Method
SNESGetLinearSolveFailures(snes, nfails)See PETSc manual.
GridapPETSc.PETSC.SNESGetLinearSolveIterations — Method
SNESGetLinearSolveIterations(snes, iter)See PETSc manual.
GridapPETSc.PETSC.SNESGetNumberFunctionEvals — Method
SNESGetNumberFunctionEvals(snes, nfuncs)See PETSc manual.
GridapPETSc.PETSC.SNESSetConvergenceTest — Method
SNESSetConvergenceTest(snes, convtest, cctx, destroy)See PETSc manual.
GridapPETSc.PETSC.SNESSetCountersReset — Method
SNESSetCountersReset(snes, reset)See PETSc manual.
GridapPETSc.PETSC.SNESSetFromOptions — Method
SNESSetFromOptions(snes)See PETSc manual.
GridapPETSc.PETSC.SNESSetFunction — Method
SNESSetFunction(snes, vec, fptr, ctx)See PETSc manual.
GridapPETSc.PETSC.SNESSetJacobian — Method
SNESSetJacobian(snes, A, P, jacptr, ctx)See PETSc manual.
GridapPETSc.PETSC.SNESSetType — Method
SNESSetType(snes, type)See PETSc manual.
GridapPETSc.PETSC.SNESSolve — Method
SNESSolve(snes, b, x)See PETSc manual.
GridapPETSc.PETSC.SNESView — Method
SNESView(snes, viewer)See PETSc manual.
GridapPETSc.PETSC.VecAXPBY — Method
VecAXPBY(y, alpha, beta, x)See PETSc manual.
GridapPETSc.PETSC.VecAXPY — Method
VecAXPY(y, alpha, x)See PETSc manual.
GridapPETSc.PETSC.VecAYPX — Method
VecAYPX(y, beta, x)See PETSc manual.
GridapPETSc.PETSC.VecAssemblyBegin — Method
VecAssemblyBegin(vec)See PETSc manual.
GridapPETSc.PETSC.VecAssemblyEnd — Method
VecAssemblyEnd(vec)See PETSc manual.
GridapPETSc.PETSC.VecCopy — Method
VecCopy(x, y)See PETSc manual.
GridapPETSc.PETSC.VecCreateGhost — Method
VecCreateGhost(comm, n, N, nghost, ghosts, vv)See PETSc manual.
GridapPETSc.PETSC.VecCreateGhostWithArray — Method
VecCreateGhostWithArray(comm, n, N, nghost, ghosts, array, vv)See PETSc manual.
GridapPETSc.PETSC.VecCreateMPI — Method
VecCreateMPI(comm, n, N, v)See PETSc manual.
GridapPETSc.PETSC.VecCreateSeq — Method
VecCreateSeq(comm, n, vec)See PETSc manual.
GridapPETSc.PETSC.VecCreateSeqWithArray — Method
VecCreateSeqWithArray(comm, bs, n, array, vec)See PETSc manual.
GridapPETSc.PETSC.VecDestroy — Method
VecDestroy(vec)See PETSc manual.
GridapPETSc.PETSC.VecDuplicate — Method
VecDuplicate(v, newv)See PETSc manual.
GridapPETSc.PETSC.VecGetArray — Method
VecGetArray(x, a)See PETSc manual.
GridapPETSc.PETSC.VecGetArrayRead — Method
VecGetArrayRead(x, a)See PETSc manual.
GridapPETSc.PETSC.VecGetArrayWrite — Method
VecGetArrayWrite(x, a)See PETSc manual.
GridapPETSc.PETSC.VecGetLocalSize — Method
VecGetLocalSize(vec, n)See PETSc manual.
GridapPETSc.PETSC.VecGetSize — Method
VecGetSize(vec, n)See PETSc manual.
GridapPETSc.PETSC.VecGetValues — Method
VecGetValues(x, ni, ix, y)See PETSc manual.
GridapPETSc.PETSC.VecGhostGetLocalForm — Method
VecGhostGetLocalForm(g, l)See PETSc manual.
GridapPETSc.PETSC.VecGhostRestoreLocalForm — Method
VecGhostRestoreLocalForm(g, l)See PETSc manual.
GridapPETSc.PETSC.VecNorm — Method
VecNorm(x, typ, val)See PETSc manual.
GridapPETSc.PETSC.VecPlaceArray — Method
VecPlaceArray(vec, array)See PETSc manual.
GridapPETSc.PETSC.VecResetArray — Method
VecResetArray(vec)See PETSc manual.
GridapPETSc.PETSC.VecRestoreArray — Method
VecRestoreArray(x, a)See PETSc manual.
GridapPETSc.PETSC.VecRestoreArrayRead — Method
VecRestoreArrayRead(x, a)See PETSc manual.
GridapPETSc.PETSC.VecRestoreArrayWrite — Method
VecRestoreArrayWrite(x, a)See PETSc manual.
GridapPETSc.PETSC.VecScale — Method
VecScale(x, alpha)See PETSc manual.
GridapPETSc.PETSC.VecSet — Method
VecSet(x, alpha)See PETSc manual.
GridapPETSc.PETSC.VecSetBlockSize — Method
VecSetBlockSize(v, bs)See PETSc manual.
GridapPETSc.PETSC.VecSetOption — Method
VecSetOption(x, op, flg)See PETSc manual.
GridapPETSc.PETSC.VecSetValues — Method
VecSetValues(x, ni, ix, y, iora)See PETSc manual.
GridapPETSc.PETSC.VecView — Method
VecView(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 — Macro
macro 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.