PETSc version 3.15.4

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
DMGetGlobalVector DMSetStratumIS
Intermediate - Setting options for algorithms and data structures
DM DMGetLabel DMSetCoordinateSection
DMAdaptLabel DMGetLabelByNum DMSetCoordinates
DMAddField DMGetLabelName DMSetCoordinatesLocal
DMCOMPOSITE DMGetLocalSection DMSetField
DMClearDS DMGetLocalToGlobalMapping DMSetFieldAvoidTensor
DMClearFields DMGetMatType DMSetFineDM
DMCompositeGetLocalISs DMGetNumBoundary DMSetFromOptions
DMConvert DMGetNumDS DMSetGlobalSection
DMCopyLabels DMGetNumFields DMSetISColoringType
DMCreateDS DMGetNumLabels DMSetLocalSection
DMCreateDomainDecomposition DMGetOutputDM DMSetMatType
DMCreateFieldDecomposition DMGetOutputSequenceNumber DMSetNullSpaceConstructor
DMCreateLabel DMGetPointSF DMSetNumFields
DMCreateLabelAtIndex DMGetSectionSF DMSetOutputSequenceNumber
DMCreateSectionSubDM DMGetType DMSetPointSF
DMCreateSectionSuperDM DMGetVecType DMSetSectionSF
DMCreateSubDM DMGlobalToLocalBegin DMSetType
DMCreateSuperDM DMGlobalToLocalEnd DMSetVariableBounds
DMField DMHasLabel DMSetVecType
DMFieldEvaluate DMInterpolationInfo DMViewFromOptions
DMFieldEvaluateFE DMLoad MatGetDM
DMFieldEvaluateFV DMLocalToGlobalBegin MatSetDM
DMFieldGetDM DMLocalToGlobalEnd PETSCPARTITIONERCHACO
DMFieldGetDegree DMLocalToLocalBegin PETSCPARTITIONERGATHER
DMFieldGetNumComponents DMLocalToLocalEnd PETSCPARTITIONERPARMETIS
DMFieldType DMMonitorCancel PETSCPARTITIONERPTSCOTCH
DMGetApplicationContext DMMonitorSet PETSCPARTITIONERSHELL
DMGetBlockSize DMOutputSequenceLoad PETSCPARTITIONERSIMPLE
DMGetCoarseDM DMPATCH PetscDS
DMGetCoordinateDM DMPlexInterpolatedFlag PetscDTNodeType
DMGetCoordinateDim DMProjectBdFieldLabelLocal PetscGaussLobattoLegendreCreateType
DMGetCoordinateSection DMProjectCoordinates PetscPartitioner
DMGetCoordinates DMProjectFieldLabelLocal PetscPartitionerGetType
DMGetCoordinatesLocal DMProjectFieldLocal PetscPartitionerSetType
DMGetDS DMREDUNDANT PetscPartitionerShellGetRandom
DMGetDimPoints DMSLICED PetscPartitionerShellSetRandom
DMGetField DMSetApplicationContext PetscPartitionerViewFromOptions
DMGetFieldAvoidTensor DMSetApplicationContextDestroy PetscWeakForm
DMGetFineDM DMSetCoarseDM VecGetDM
DMGetGlobalSection DMSetCoordinateDM VecSetDM
DMGetISColoringType DMSetCoordinateDim
Advanced - Setting more advanced options and customization
DMAdaptMetric DMGetCoordinatesLocalTuple DMShellSetContext
DMAppendOptionsPrefix DMGetDefaultConstraints DMShellSetCreateDomainDecomposition
DMCoarsenHookAdd DMGetOptionsPrefix DMShellSetCreateDomainDecompositionScatters
DMCoarsenHookRemove DMGetRegionDS DMShellSetCreateFieldDecomposition
DMCompositeAddDM DMGetRegionNumDS DMShellSetCreateGlobalVector
DMCompositeCreate DMGetSection DMShellSetCreateInjection
DMCompositeGather DMGlobalToLocalBeginDefaultShell DMShellSetCreateInterpolation
DMCompositeGatherArray DMGlobalToLocalEndDefaultShell DMShellSetCreateLocalVector
DMCompositeGetAccess DMGlobalToLocalHookAdd DMShellSetCreateMatrix
DMCompositeGetAccessArray DMLocalToGlobalBeginDefaultShell DMShellSetCreateRestriction
DMCompositeGetEntries DMLocalToGlobalEndDefaultShell DMShellSetCreateSubDM
DMCompositeGetEntriesArray DMLocalToGlobalHookAdd DMShellSetGlobalToLocal
DMCompositeGetGlobalISs DMLocalToLocalBeginDefaultShell DMShellSetGlobalToLocalVecScatter
DMCompositeGetISLocalToGlobalMappings DMLocalToLocalEndDefaultShell DMShellSetGlobalVector
DMCompositeGetLocalAccessArray DMRedundantCreate DMShellSetLocalToGlobal
DMCompositeGetLocalVectors DMRedundantGetSize DMShellSetLocalToGlobalVecScatter
DMCompositeRestoreAccess DMRedundantSetSize DMShellSetLocalToLocal
DMCompositeRestoreAccessArray DMRefineHookAdd DMShellSetLocalToLocalVecScatter
DMCompositeRestoreLocalAccessArray DMRefineHookRemove DMShellSetLocalVector
DMCompositeRestoreLocalVectors DMRegister DMShellSetMatrix
DMCompositeScatter DMRegisterAll DMShellSetRefine
DMCompositeScatterArray DMSetDefaultConstraints DMSlicedCreate
DMCompositeSetCoupling DMSetOptionsPrefix DMSlicedSetBlockFills
DMComputeVariableBounds DMSetRefineLevel DMSlicedSetGhosts
DMCopyDS DMSetRegionDS DMSlicedSetPreallocation
DMCopyDisc DMSetRegionNumDS DMSubDomainHookAdd
DMCopyFields DMSetSection DMSubDomainHookRemove
DMFieldDestroy DMShellCreate MatFDColoringUseDM
DMFieldGetType DMShellGetCoarsen PetscDSRegisterAll
DMFieldRegister DMShellGetContext PetscDualSpaceRegisterAll
DMFieldRegisterAll DMShellGetCreateInjection PetscFERegisterAll
DMFieldSetType DMShellGetCreateInterpolation PetscFVRegisterAll
DMFieldView DMShellGetCreateRestriction PetscLimiterRegisterAll
DMFindRegionNum DMShellGetCreateSubDM PetscPartitionerRegister
DMGetCompatibility DMShellGetGlobalVector PetscPartitionerRegisterAll
DMGetCoordinatesLocalNoncollective DMShellGetRefine PetscSpaceRegisterAll
DMGetCoordinatesLocalSetUp DMShellSetCoarsen
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
DMAddBoundary DMGetCoordinatesLocalizedLocal DMRestoreNamedGlobalVector
DMAddLabel DMGetLabelOutput DMRestoreNamedLocalVector
DMClearGlobalVectors DMGetNamedGlobalVector DMRestoreWorkArray
DMClearLocalVectors DMGetNamedLocalVector DMRestrict
DMCoarsen DMGetPeriodicity DMSetAdjacency
DMCoarsenHierarchy DMGetRefineLevel DMSetBasicAdjacency
DMComputeError DMGetWorkArray DMSetCoarsenLevel
DMComputeExactSolution DMHasBasisTransform DMSetLabelOutput
DMComputeL2Diff DMHasColoring DMSetMatrixPreallocateOnly
DMComputeL2FieldDiff DMHasCreateInjection DMSetMatrixStructureOnly
DMComputeL2GradientDiff DMHasCreateRestriction DMSetPeriodicity
DMCreateColoring DMHasNamedGlobalVector DMSetUp
DMCreateDomainDecompositionScatters DMHasNamedLocalVector DMSubDomainRestrict
DMCreateInjection DMHasVariableBounds DMUniversalLabel
DMCreateInterpolation DMInitializePackage PETSCPARTITIONERMATPARTITIONING
DMCreateInterpolationScale DMInterpolate PetscDSFinalizePackage
DMCreateMassMatrix DMInterpolateSolution PetscDSInitializePackage
DMCreateRestriction DMLabel PetscFEFinalizePackage
DMCreateSectionSF DMLocalizeCoordinate PetscFEInitializePackage
DMDestroy DMLocalizeCoordinates PetscFVFinalizePackage
DMFieldCreateDefaultQuadrature DMLocatePoints PetscFVInitializePackage
DMFieldCreateFEGeom DMMonitor PetscPartitionerDestroy
DMFieldFinalizePackage DMMonitorSetFromOptions PetscPartitionerFinalizePackage
DMFieldInitializePackage DMProjectFunction PetscPartitionerInitializePackage
DMFinalizePackage DMProjectFunctionLabel PetscPartitionerMatPartitioningGetMatPartitioning
DMGetAdjacency DMProjectFunctionLabelLocal PetscPartitionerPartition
DMGetBasicAdjacency DMProjectFunctionLocal PetscPartitionerReset
DMGetBoundary DMRefine PetscPartitionerSetFromOptions
DMGetCellDS DMRefineHierarchy PetscPartitionerSetUp
DMGetCoarsenLevel DMRemoveLabel PetscPartitionerShellSetPartition
DMGetCoordinatesLocalized DMRemoveLabelBySelf PetscPartitionerView
No deprecated routines

Table of Contents