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
DMADDAGetCorners DMDAInterpolationType DMMeshAssembleVector
DMADDAGetGhostCorners DMDALocalInfo DMMeshCreateExodus
DMADDAGetMatrixNS DMDASetUniformCoordinates DMMeshCreate
DMADDAMatSetValues DMDA_STENCIL_BOX DMMeshCreatePCICE
DMCartesianCreate DMDA_STENCIL_STAR DMMeshExodusGetInfo
DMCompositeGetNumberDM DMDAStencilType DMMeshGetDimension
DMCreateGlobalVector DMGetGlobalVector DMMeshGetLabelIds
DMCreate DMGetLocalVector DMMeshGetLabelSize
DMCreateLocalVector DMGetMatrix DMMeshGetMaximumDegree
DMDABoundaryType DMGlobalToLocalBegin DMMeshGetStratum
DMDACreate1d DMGlobalToLocalEnd DMMeshGetStratumSize
DMDACreate2d DMIGACreate DMMeshRestrictVector
DMDACreate3d DMIGAGetBasisData DMRestoreGlobalVector
DMDAElementType DMIGAGetLocalInfo DMRestoreLocalVector
DMDAGetBoundingBox DMIGAGetNumQuadraturePoints PetscViewerBinaryMatlabDestroy
DMDAGetCorners DMIGAGetPolynomialOrder PetscViewerBinaryMatlabOpen
DMDAGetGhostCorners DMLocalToGlobalBegin SAMappingSetSizes
DMDAGetInfo DMLocalToGlobalEnd SectionIntView
DMDAGetLocalBoundingBox DMMeshAssembleMatrix SectionRealView
DMDAGetLocalInfo DMMeshAssembleVectorComplete
Intermediate - Setting options for algorithms and data structures
BCSectionGetArray DMDASetGhostedCoordinates DMMeshGetElements
BCSectionRealCreate DMDASetInterpolationType DMMeshGetSectionInt
BCSectionRealGetArray DMDASetLocalAdicFunction DMMeshGetSectionReal
DMADDACreate DMDASetLocalAdicFunctionib DMMeshGetVertexSectionInt
DMCompositeGetLocalISs DMDASetLocalAdicFunctioni DMMeshGetVertexSectionReal
DMConvert DMDASetLocalAdicMFFunction DMMeshHasSectionInt
DMDACoor2d DMDASetLocalAdicMFFunctionib DMMeshHasSectionReal
DMDACoor3d DMDASetLocalAdicMFFunctioni DMMeshRefine
DMDAForEachPointBegin2d DMDASetLocalFunction DMMeshSetSectionInt
DMDAForEachPointEnd2d DMDASetLocalFunctionib DMMeshSetSectionReal
DMDAFormFunctionLocalGhost DMDASetLocalFunctioni DMMeshSetupSection
DMDAFormFunctionLocal DMDASetLocalJacobian DMSetApplicationContext
DMDAFormjacobianLocal DMDASetNumProcs DMSetFunction
DMDAGetAO DMDASetOwnershipRanges DMSetInitialGuess
DMDAGetCoordinateDA DMDASetRefinementFactor DMSetJacobian
DMDAGetCoordinates DMDASetSizes DMSetType
DMDAGetElements DMDASetStencilType DMSetVecType
DMDAGetElementType DMDASetStencilWidth MatCreateSeqUSFFT
DMDAGetFieldName DMDAVecGetArrayDOF MATHYPRESSTRUCT
DMDAGetGhostedCoordinates DMDAVecGetArray MATHYPRESTRUCT
DMDAGetGlobalIndicesF90 DMDAVecRestoreArrayDOF MatSetDM
DMDAGetGlobalIndices DMDAVecRestoreArray MatSetValuesTopology
DMDAGetInterpolationType DMGetAggregates PetscViewerBinaryMatlabOutputBag
DMDAGetLocalFunction DMGetApplicationContext PetscViewerBinaryMatlabOutputVecDA
DMDAGetLocalJacobian DMGetBlockSize PetscViewerBinaryMatlabOutputVec
DMDAGetNeighbors DMGetLocalToGlobalMappingBlock SAMappingPullback
DMDAGetOwnershipRanges DMGetLocalToGlobalMapping SAMappingPushforward
DMDAGetReducedDA DMGetType SectionGetArray
DMDAGetRefinementFactor DMIGAGetFieldName SectionIntDistribute
DMDALocalToLocalBegin DMIGASetFieldName SectionIntRestrictClosure
DMDALocalToLocalEnd DMIGAVecGetArray SectionIntSet
DMDANaturalToGlobalEnd DMIGAVecRestoreArray SectionIntUpdateClosure
DMDARestoreElements DMLoad SectionRealAXPY
DMDASetBoundaryType DMMeshDistribute SectionRealDistribute
DMDASetCoordinates DMMeshGenerate SectionRealNorm
DMDASetDim DMMeshGetCellSectionInt SectionRealRestrictClosure
DMDASetDof DMMeshGetCellSectionReal SectionRealSet
DMDASetElementType DMMeshGetCone SectionRealUpdateClosure
DMDASetFieldName DMMeshGetCoordinates
Advanced - Setting more advanced options and customization
DMCartesianGetMesh DMDANaturalToGlobalBegin SectionIntCreate
DMCartesianSetMesh DMDARestoreAdicArray SectionIntDestroy
DMCompositeAddArray DMDARestoreAdicMFArray SectionIntGetBundle
DMCompositeAddDM DMDARestoreArray SectionIntGetFiberDimension
DMCompositeCreate DMMeshCreateGlobalRealVector SectionIntGetFibration
DMCompositeGather DMMeshCreateGlobalScatter SectionIntGetSection
DMCompositeGetAccess DMMeshCreateMatrix SectionIntGetSize
DMCompositeGetEntries DMMeshCreateVector SectionIntRestrict
DMCompositeGetGlobalISs DMMeshGetGlobalScatter SectionIntSetBundle
DMCompositeGetISLocalToGlobalMappings DMMeshGetMesh SectionIntSetFiberDimensionField
DMCompositeGetLocalVectors DMMeshLoad SectionIntSetFiberDimension
DMCompositeRestoreAccess DMMeshSetMesh SectionIntSetSection
DMCompositeRestoreLocalVectors DMRegisterAll SectionIntUpdate
DMCompositeScatter DMRegisterDestroy SectionIntZero
DMCompositeSetCoupling DMRegister SectionRealAddSpace
DMDAComputeJacobian1 DMSetOptionsPrefix SectionRealAllocate
DMDAComputeJacobian1WithAdic DMSlicedCreate SectionRealClear
DMDACreate DMSlicedGetGlobalIndices SectionRealComplete
DMDACreatePF DMSlicedSetBlockFills SectionRealCreate
DMDAFormFunction1 DMSlicedSetGhosts SectionRealCreateLocalVector
DMDAFormFunction DMSlicedSetPreallocation SectionRealDestroy
DMDAFormFunctioni1 PCICERenumberBoundary SectionRealDuplicate
DMDAFormFunctionib1 SAMappingBin SectionRealGetBundle
DMDAGetAdicArray SAMappingBinLocal SectionRealGetFiberDimension
DMDAGetAdicMFArrayb SAMappingBinSplit SectionRealGetFibration
DMDAGetAdicMFArray SAMappingBinSplitLocal SectionRealGetSection
DMDAGetArray SAMappingMap SectionRealGetSize
DMDAGetProcessorSubset SAMappingMapLocal SectionRealRestrict
DMDAGetProcessorSubsets SAMappingMapSplit SectionRealSetBundle
DMDAGlobalToNaturalAllCreate SAMappingMapSplitLocal SectionRealSetFiberDimensionField
DMDAGlobalToNaturalBegin SAMappingRegister SectionRealSetFiberDimension
DMDAGlobalToNaturalEnd SAMappingSetUp SectionRealSetSection
DMDAMultiplyByJacobian1WithAD SectionIntAddSpace SectionRealToVec
DMDAMultiplyByJacobian1WithAdic SectionIntAllocate SectionRealUpdate
DMDAMultiplyByJacobian1WithAdifor SectionIntClear SectionRealZero
DMDANaturalAllToGlobalCreate SectionIntComplete
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
ADDAHCiter DMDASetBlockFills DMRefineHierarchy
ADDAHCiterStartup DMDASetGetMatrix DMRefine
DMADDASetRefinement DMDestroy DMSetFromOptions
DMClearGlobalVectors DMGetColoring DMSetMatrixPreallocateOnly
DMCoarsenHierarchy DMGetInjection DMSetUp
DMCoarsen DMGetInterpolation DMView
DMComputeFunction DMGetInterpolationScale SAMappingFinalizePackage
DMComputeInitialGuess DMGetRefineLevel SAMappingInitializePackage
DMComputeJacobianDefault DMHasFunction SAMappingRegisterAll
DMComputeJacobian DMHasInitialGuess SAMappingRegisterDestroy
DMDACreateNaturalVector DMHasJacobian
DMDAGetScatter DMMeshSetMaxDof
No deprecated routines

Table of Contents