PETSc version v3.16.0-284-g50ae73ce4b

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 DMGetLabel DMSetCoordinatesLocal
DMAdaptLabel DMGetLabelByNum DMSetField
DMAddField DMGetLabelName DMSetFieldAvoidTensor
DMCOMPOSITE DMGetLocalSection DMSetFineDM
DMClearDS DMGetLocalToGlobalMapping DMSetFromOptions
DMClearFields DMGetMatType DMSetGlobalSection
DMCompareLabels DMGetNaturalSF DMSetISColoringType
DMCompositeGetLocalISs DMGetNumDS DMSetLabel
DMConvert DMGetNumFields DMSetLocalSection
DMCopyLabels DMGetNumLabels DMSetMatType
DMCreateDS DMGetOutputDM DMSetNaturalSF
DMCreateDomainDecomposition DMGetOutputSequenceNumber DMSetNullSpaceConstructor
DMCreateFieldDecomposition 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 DMProjectBdFieldLabelLocal PetscFormKey
DMGetCoordinateDM DMProjectCoordinates PetscGaussLobattoLegendreCreateType
DMGetCoordinateDim DMProjectFieldLabelLocal PetscPartitioner
DMGetCoordinateSection DMProjectFieldLocal PetscPartitionerGetType
DMGetCoordinates DMREDUNDANT PetscPartitionerSetType
DMGetCoordinatesLocal DMSLICED PetscPartitionerShellGetRandom
DMGetDS DMSetApplicationContext PetscPartitionerShellSetRandom
DMGetDimPoints DMSetApplicationContextDestroy PetscPartitionerViewFromOptions
DMGetField DMSetCoarseDM PetscWeakForm
DMGetFieldAvoidTensor DMSetCoordinateDM VecGetDM
DMGetFineDM DMSetCoordinateDim VecSetDM
DMGetGlobalSection DMSetCoordinateSection
DMGetISColoringType DMSetCoordinates
Advanced - Setting more advanced options and customization
DMAdaptMetric DMGetCoordinatesLocalTuple DMShellGetGlobalVector
DMAppendOptionsPrefix DMGetDefaultConstraints DMShellGetRefine
DMCoarsenHookAdd DMGetNumAuxiliaryVec DMShellSetCoarsen
DMCoarsenHookRemove DMGetOptionsPrefix DMShellSetContext
DMCompositeAddDM DMGetRegionDS DMShellSetCreateDomainDecomposition
DMCompositeCreate DMGetRegionNumDS DMShellSetCreateDomainDecompositionScatters
DMCompositeGather DMGetSection DMShellSetCreateFieldDecomposition
DMCompositeGatherArray DMGlobalToLocalBeginDefaultShell DMShellSetCreateGlobalVector
DMCompositeGetAccess DMGlobalToLocalEndDefaultShell DMShellSetCreateInjection
DMCompositeGetAccessArray DMGlobalToLocalHookAdd DMShellSetCreateInterpolation
DMCompositeGetEntries DMLocalToGlobalBeginDefaultShell DMShellSetCreateLocalVector
DMCompositeGetEntriesArray DMLocalToGlobalEndDefaultShell DMShellSetCreateMatrix
DMCompositeGetGlobalISs DMLocalToGlobalHookAdd DMShellSetCreateRestriction
DMCompositeGetISLocalToGlobalMappings DMLocalToLocalBeginDefaultShell DMShellSetCreateSubDM
DMCompositeGetLocalAccessArray DMLocalToLocalEndDefaultShell DMShellSetGlobalToLocal
DMCompositeGetLocalVectors DMPolytopeGetOrientation DMShellSetGlobalToLocalVecScatter
DMCompositeRestoreAccess DMPolytopeGetVertexOrientation DMShellSetGlobalVector
DMCompositeRestoreAccessArray DMPolytopeInCellTest DMShellSetLocalToGlobal
DMCompositeRestoreLocalAccessArray DMPolytopeMatchOrientation DMShellSetLocalToGlobalVecScatter
DMCompositeRestoreLocalVectors DMPolytopeMatchVertexOrientation DMShellSetLocalToLocal
DMCompositeScatter DMRedundantCreate DMShellSetLocalToLocalVecScatter
DMCompositeScatterArray DMRedundantGetSize DMShellSetLocalVector
DMCompositeSetCoupling DMRedundantSetSize DMShellSetMatrix
DMComputeVariableBounds DMRefineHookAdd DMShellSetRefine
DMCopyAuxiliaryVec DMRefineHookRemove DMSlicedCreate
DMCopyDS DMRegister DMSlicedSetBlockFills
DMCopyDisc DMRegisterAll DMSlicedSetGhosts
DMCopyFields DMSetAuxiliaryVec DMSlicedSetPreallocation
DMCopyLabelsMode DMSetDefaultConstraints DMSubDomainHookAdd
DMFieldDestroy DMSetOptionsPrefix DMSubDomainHookRemove
DMFieldGetType DMSetRefineLevel MatFDColoringUseDM
DMFieldRegister DMSetRegionDS PetscDSRegisterAll
DMFieldRegisterAll DMSetRegionNumDS PetscDualSpaceRegisterAll
DMFieldSetType DMSetSection PetscFERegisterAll
DMFieldView DMShellCreate PetscFVRegisterAll
DMFindRegionNum DMShellGetCoarsen PetscLimiterRegisterAll
DMGetAuxiliaryLabels DMShellGetContext PetscPartitionerRegister
DMGetAuxiliaryVec DMShellGetCreateInjection PetscPartitionerRegisterAll
DMGetCompatibility DMShellGetCreateInterpolation PetscSpaceRegisterAll
DMGetCoordinatesLocalNoncollective DMShellGetCreateRestriction
DMGetCoordinatesLocalSetUp DMShellGetCreateSubDM
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
DMExtrude DMLocatePoints PetscFVInitializePackage
DMFieldCreateDefaultQuadrature DMMonitor PetscPartitionerDestroy
DMFieldCreateFEGeom DMMonitorSetFromOptions PetscPartitionerFinalizePackage
DMFieldFinalizePackage DMProjectFunction PetscPartitionerInitializePackage
DMFieldInitializePackage DMProjectFunctionLabel PetscPartitionerMatPartitioningGetMatPartitioning
DMFinalizePackage DMProjectFunctionLabelLocal PetscPartitionerPartition
DMGetAdjacency DMProjectFunctionLocal PetscPartitionerReset
DMGetBasicAdjacency DMRefine PetscPartitionerSetFromOptions
DMGetCellDS DMRefineHierarchy PetscPartitionerSetUp
DMGetCoarsenLevel DMRemoveLabel PetscPartitionerShellSetPartition
DMGetCoordinatesLocalized DMRemoveLabelBySelf PetscPartitionerView
No deprecated routines

Table of Contents