PETSc version 3.17.5

DM Examples

DM objects are used to manage communication between the algebraic structures in PETSc (Vec and Mat) and mesh data structures in PDE-based (or other) simulations. See, for example, DMDACreate().

Beginner - Basic usage
DMAdaptFlag DMGetLabelIdIS DMSetUseNatural
DMAdaptationCriterion DMGetLabelSize DMType
DMAdaptationStrategy DMGetLabelValue DMView
DMBoundaryConditionType DMGetLocalBoundingBox PetscDSType
DMBoundaryType DMGetLocalVector PetscDTBinomial
DMClearLabelStratum DMGetNeighbors PetscDTBinomialInt
DMClearLabelValue DMGetStratumIS PetscDTEnumPerm
DMClone DMGetStratumSize PetscDTEnumSubset
DMCompositeGetNumberDM DMGetUseNatural PetscDTFactorial
DMCreate DMGlobalToLocal PetscDTFactorialInt
DMCreateGlobalVector DMLocalToGlobal PetscDTPermIndex
DMCreateLocalVector DMPointLocationType PetscDTSubsetIndex
DMCreateMatrix DMPolytopeType PetscPartitionerCreate
DMDirection DMRestoreGlobalVector PetscPartitionerType
DMEnclosureType DMRestoreLocalVector PetscQuadrature
DMGetBoundingBox DMSetDimension PetscUnit
DMGetDimension DMSetLabelValue PetscWeakFormKind
DMGetGlobalVector DMSetStratumIS
Intermediate - Setting options for algorithms and data structures
DM DMGetISColoringType DMSetCoordinateSection
DMAdaptLabel DMGetLabel DMSetCoordinates
DMAddBoundary DMGetLabelByNum DMSetCoordinatesLocal
DMAddField DMGetLabelName DMSetField
DMCOMPOSITE DMGetLocalSection DMSetFieldAvoidTensor
DMClearDS DMGetLocalToGlobalMapping DMSetFineDM
DMClearFields DMGetMatType DMSetFromOptions
DMCompareLabels DMGetNaturalSF DMSetGlobalSection
DMCompositeGetLocalISs DMGetNearNullSpaceConstructor DMSetISColoringType
DMConvert DMGetNullSpaceConstructor DMSetLabel
DMCopyLabels DMGetNumDS DMSetLocalSection
DMCreateDS DMGetNumFields DMSetMatType
DMCreateDomainDecomposition DMGetNumLabels DMSetNaturalSF
DMCreateFEDefault DMGetOutputDM DMSetNearNullSpaceConstructor
DMCreateFieldDecomposition DMGetOutputSequenceNumber DMSetNullSpaceConstructor
DMCreateFieldIS DMGetPointSF DMSetNumFields
DMCreateLabel DMGetSectionSF DMSetOutputSequenceNumber
DMCreateLabelAtIndex DMGetType DMSetPointSF
DMCreateSectionSubDM DMGetVecType DMSetSectionSF
DMCreateSectionSuperDM DMGlobalToLocalBegin DMSetType
DMCreateSubDM DMGlobalToLocalEnd DMSetVariableBounds
DMCreateSuperDM DMHasLabel DMSetVecType
DMField DMInterpolationInfo DMViewFromOptions
DMFieldEvaluate DMLoad MatGetDM
DMFieldEvaluateFE DMLocalToGlobalBegin MatSetDM
DMFieldEvaluateFV DMLocalToGlobalEnd PETSCPARTITIONERCHACO
DMFieldGetDM DMLocalToLocalBegin PETSCPARTITIONERGATHER
DMFieldGetDegree DMLocalToLocalEnd PETSCPARTITIONERPARMETIS
DMFieldGetNumComponents DMMonitorCancel PETSCPARTITIONERPTSCOTCH
DMFieldType DMMonitorSet PETSCPARTITIONERSHELL
DMGetApplicationContext DMOutputSequenceLoad PETSCPARTITIONERSIMPLE
DMGetBlockSize DMPATCH PetscDS
DMGetCeed DMPlexInterpolatedFlag PetscDTNodeType
DMGetCoarseDM DMPlexTPSType PetscFormKey
DMGetCoordinateDM DMProjectBdFieldLabelLocal PetscGaussLobattoLegendreCreateType
DMGetCoordinateDim DMProjectCoordinates PetscPartitioner
DMGetCoordinateSection DMProjectFieldLabelLocal PetscPartitionerGetType
DMGetCoordinates DMProjectFieldLocal PetscPartitionerSetType
DMGetCoordinatesLocal DMREDUNDANT PetscPartitionerShellGetRandom
DMGetDS DMSLICED PetscPartitionerShellSetRandom
DMGetDimPoints DMSetApplicationContext PetscPartitionerViewFromOptions
DMGetField DMSetApplicationContextDestroy PetscWeakForm
DMGetFieldAvoidTensor DMSetCoarseDM VecGetDM
DMGetFineDM DMSetCoordinateDM VecSetDM
DMGetGlobalSection DMSetCoordinateDim
Advanced - Setting more advanced options and customization
DMAdaptMetric DMGetCoordinatesLocalNoncollective DMShellGetCreateRestriction
DMAppendOptionsPrefix DMGetCoordinatesLocalSetUp DMShellGetCreateSubDM
DMCoarsenHookAdd DMGetCoordinatesLocalTuple DMShellGetGlobalVector
DMCoarsenHookRemove DMGetDefaultConstraints DMShellGetRefine
DMCompositeAddDM DMGetNumAuxiliaryVec DMShellSetCoarsen
DMCompositeCreate DMGetOptionsPrefix DMShellSetContext
DMCompositeGather DMGetRegionDS DMShellSetCreateDomainDecomposition
DMCompositeGatherArray DMGetRegionNumDS DMShellSetCreateDomainDecompositionScatters
DMCompositeGetAccess DMGetSection DMShellSetCreateFieldDecomposition
DMCompositeGetAccessArray DMGlobalToLocalBeginDefaultShell DMShellSetCreateGlobalVector
DMCompositeGetEntries DMGlobalToLocalEndDefaultShell DMShellSetCreateInjection
DMCompositeGetEntriesArray DMGlobalToLocalHookAdd DMShellSetCreateInterpolation
DMCompositeGetGlobalISs DMLocalToGlobalBeginDefaultShell DMShellSetCreateLocalVector
DMCompositeGetISLocalToGlobalMappings DMLocalToGlobalEndDefaultShell DMShellSetCreateMatrix
DMCompositeGetLocalAccessArray DMLocalToGlobalHookAdd DMShellSetCreateRestriction
DMCompositeGetLocalVectors DMLocalToLocalBeginDefaultShell DMShellSetCreateSubDM
DMCompositeRestoreAccess DMLocalToLocalEndDefaultShell DMShellSetGlobalToLocal
DMCompositeRestoreAccessArray DMPolytopeGetOrientation DMShellSetGlobalToLocalVecScatter
DMCompositeRestoreLocalAccessArray DMPolytopeGetVertexOrientation DMShellSetGlobalVector
DMCompositeRestoreLocalVectors DMPolytopeInCellTest DMShellSetLocalToGlobal
DMCompositeScatter DMPolytopeMatchOrientation DMShellSetLocalToGlobalVecScatter
DMCompositeScatterArray DMPolytopeMatchVertexOrientation DMShellSetLocalToLocal
DMCompositeSetCoupling DMRedundantCreate DMShellSetLocalToLocalVecScatter
DMComputeVariableBounds DMRedundantGetSize DMShellSetLocalVector
DMCopyAuxiliaryVec DMRedundantSetSize DMShellSetMatrix
DMCopyDS DMRefineHookAdd DMShellSetRefine
DMCopyDisc DMRefineHookRemove DMSlicedCreate
DMCopyFields DMRegister DMSlicedSetBlockFills
DMCopyLabelsMode DMRegisterAll DMSlicedSetGhosts
DMFieldDestroy DMSetAuxiliaryVec DMSlicedSetPreallocation
DMFieldGetType DMSetDefaultConstraints DMSubDomainHookAdd
DMFieldRegister DMSetOptionsPrefix DMSubDomainHookRemove
DMFieldRegisterAll DMSetRefineLevel MatFDColoringUseDM
DMFieldSetType DMSetRegionDS PetscDSRegisterAll
DMFieldView DMSetRegionNumDS PetscDualSpaceRegisterAll
DMFindRegionNum DMSetSection PetscFERegisterAll
DMGenerateRegister DMShellCreate PetscFVRegisterAll
DMGenerateRegisterAll DMShellGetCoarsen PetscLimiterRegisterAll
DMGetAuxiliaryLabels DMShellGetContext PetscPartitionerRegister
DMGetAuxiliaryVec DMShellGetCreateInjection PetscPartitionerRegisterAll
DMGetCompatibility DMShellGetCreateInterpolation PetscSpaceRegisterAll
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
DMAddLabel DMGetLabelOutput DMRestoreWorkArray
DMClearGlobalVectors DMGetNamedGlobalVector DMRestrict
DMClearLocalVectors DMGetNamedLocalVector DMSetAdjacency
DMCoarsen DMGetPeriodicity DMSetBasicAdjacency
DMCoarsenHierarchy DMGetRefineLevel DMSetCoarsenLevel
DMComputeError DMGetWorkArray DMSetLabelOutput
DMComputeExactSolution DMHasBasisTransform DMSetMatrixPreallocateOnly
DMComputeL2Diff DMHasColoring DMSetMatrixPreallocateSkip
DMComputeL2FieldDiff DMHasCreateInjection DMSetMatrixStructureOnly
DMComputeL2GradientDiff DMHasCreateRestriction DMSetPeriodicity
DMCreateColoring DMHasNamedGlobalVector DMSetUp
DMCreateDomainDecompositionScatters DMHasNamedLocalVector DMSubDomainRestrict
DMCreateInjection DMHasVariableBounds DMUniversalLabel
DMCreateInterpolation DMInitializePackage PETSCPARTITIONERMATPARTITIONING
DMCreateInterpolationScale DMInterpolate PetscDSFinalizePackage
DMCreateMassMatrix DMInterpolateSolution PetscDSInitializePackage
DMCreateMassMatrixLumped DMLabel PetscFEFinalizePackage
DMCreateRestriction DMLocalizeCoordinate PetscFEInitializePackage
DMCreateSectionSF DMLocalizeCoordinates PetscFVFinalizePackage
DMDestroy DMLocatePoints PetscFVInitializePackage
DMExtrude DMMonitor PetscPartitionerDestroy
DMFieldCreateDefaultQuadrature DMMonitorSetFromOptions PetscPartitionerFinalizePackage
DMFieldCreateFEGeom DMProjectFunction PetscPartitionerInitializePackage
DMFieldFinalizePackage DMProjectFunctionLabel PetscPartitionerMatPartitioningGetMatPartitioning
DMFieldInitializePackage DMProjectFunctionLabelLocal PetscPartitionerPartition
DMFinalizePackage DMProjectFunctionLocal PetscPartitionerReset
DMGetAdjacency DMRefine PetscPartitionerSetFromOptions
DMGetBasicAdjacency DMRefineHierarchy PetscPartitionerSetUp
DMGetCellDS DMRemoveLabel PetscPartitionerShellSetPartition
DMGetCoarsenLevel DMRemoveLabelBySelf PetscPartitionerView
DMGetCoordinatesLocalized DMRestoreNamedGlobalVector
DMGetCoordinatesLocalizedLocal DMRestoreNamedLocalVector
No deprecated routines

Table of Contents