petsc-master 2015-05-22
Report Typos and Errors

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
DMBoundaryType DMMoabGetVecRange DMPlexRestoreTransitiveClosure
DMClone DMMoabGetVecTag DMPlexSetChart
DMCompositeGetNumberDM DMMoabGetVertexConnectivity DMPlexSetCone
DMCreateGlobalVector DMMoabGetVertexCoordinates DMPlexSetConeOrientation
DMCreate DMMoabIsEntityOnBoundary DMPlexSetConeSize
DMCreateLocalVector DMMoabLoadFromFile DMPlexSetLabelValue
DMCreateMatrix DMMoabRestoreVertexConnectivity DMPlexSetSupport
DMDACreate1d DMMoabSetBlockSize DMPlexSetSupportSize
DMDACreate2d DMMoabSetInterface DMPlexStratify
DMDACreate3d DMMoabSetLocalElements DMPlexSymmetrize
DMDAElementType DMMoabSetLocalToGlobalTag DMRestoreGlobalVector
DMDAGetBoundingBox DMMoabSetLocalVertices DMRestoreLocalVector
DMDAGetCorners DMMoabSetParallelComm DMSetDimension
DMDAGetGhostCorners DMNetworkCreate DMType
DMDAGetInfo DMPatchCreate PetscDSAddBdDiscretization
DMDAGetLocalBoundingBox DMPlexAddConeSize PetscDSAddDiscretization
DMDAGetLocalInfo DMPlexClearLabelStratum PetscDSCreate
DMDAInterpolationType DMPlexClearLabelValue PetscDSGetBdDiscretization
DMDALocalInfo DMPlexCreateBoxMesh PetscDSGetBdFieldOffset
DMDASetUniformCoordinates DMPlexCreateCGNS PetscDSGetComponentBdDerivativeOffsets
DMDA_STENCIL_BOX DMPlexCreateCubeBoundary PetscDSGetComponentBdOffsets
DMDA_STENCIL_STAR DMPlexCreateDoublet PetscDSGetComponentDerivativeOffsets
DMDAStencilType DMPlexCreateExodus PetscDSGetComponentOffset
DMGetDimension DMPlexCreateFluentFromFile PetscDSGetComponentOffsets
DMGetGlobalVector DMPlexCreateFluent PetscDSGetDiscretization
DMGetLocalVector DMPlexCreateFromCellList PetscDSGetFieldOffset
DMGlobalToLocalBegin DMPlexCreateFromFile PetscDSGetNumFields
DMGlobalToLocalEnd DMPlexCreateGmshFromFile PetscDSGetSpatialDimension
DMLocalToGlobalBegin DMPlexCreateGmsh PetscDSGetTotalBdDimension
DMLocalToGlobalEnd DMPlexCreateHexBoxMesh PetscDSGetTotalComponents
DMMoabCreateBoxMesh DMPlexCreate PetscDSGetTotalDimension
DMMoabCreateVector DMPlexCreateSquareBoundary PetscDSSetBdDiscretization
DMMoabGetAllVertices DMPlexCreateSquareMesh PetscDSSetDiscretization
DMMoabGetBlockSize DMPlexGetChart PetscDualSpaceCreate
DMMoabGetBoundaryMarkers DMPlexGetCone PetscDualSpaceDuplicate
DMMoabGetDimension DMPlexGetConeOrientation PetscFECreateDefault
DMMoabGetElementConnectivity DMPlexGetConeSize PetscFECreate
DMMoabGetFieldDof DMPlexGetLabelIdIS PetscFVCreate
DMMoabGetInterface DMPlexGetLabelSize PetscLimiterCreate
DMMoabGetLocalElements DMPlexGetLabelValue PetscPartitionerCreate
DMMoabGetLocalSize DMPlexGetMaxSizes PetscQuadratureCreate
DMMoabGetLocalToGlobalTag DMPlexGetStratumIS PetscQuadratureDestroy
DMMoabGetLocalVertices DMPlexGetStratumSize PetscQuadratureDuplicate
DMMoabGetMaterialBlock DMPlexGetSupport PetscQuadratureView
DMMoabGetOffset DMPlexGetSupportSize PetscSpaceCreate
DMMoabGetParallelComm DMPlexGetTransitiveClosure PetscSpacePolynomialGetTensor
DMMoabGetSize DMPlexGetTransitiveClosure_Internal PetscSpacePolynomialSetTensor
Intermediate - Setting options for algorithms and data structures
DMCompositeGetLocalISs DMMoabSetGlobalFieldVector DMSetVecType
DMCOMPOSITE DMMoabVecGetArray DMSLICED
DMConvert DMMoabVecGetArrayRead MatCreateSeqUSFFT
DMCreateAggregates DMMoabVecRestoreArray MatGetDM
DMCreateDefaultSF DMNetworkAddComponent MATHYPRESSTRUCT
DMCreateDomainDecomposition DMNetworkAddNumVariables MATHYPRESTRUCT
DMCreateFieldDecomposition DMNetworkDistribute MatSetDM
DMCreateFieldIS DMNetworkGetComponentDataArray MatSetupDM
DMCreateSubDM DMNetworkGetComponentTypeOffset PETSCDSBASIC
DMDACoor2d DMNetworkGetConnectedNodes PetscDSGetBdJacobian
DMDACoor3d DMNetworkGetEdgeRange PetscDSGetBdResidual
DMDAGetAO DMNetworkGetNumComponents PetscDSGetBdTabulation
DMDAGetCoordinateArray DMNetworkGetSupportingEdges PetscDSGetJacobian
DMDAGetCoordinateName DMNetworkGetVariableGlobalOffset PetscDSGetResidual
DMDAGetElements DMNetworkGetVariableOffset PetscDSGetRiemannSolver
DMDAGetElementType DMNetworkGetVertexRange PetscDSGetTabulation
DMDAGetFieldName DMNETWORK PetscDSGetType
DMDAGetFieldNames DMNetworkIsGhostVertex PetscDSSetBdJacobian
DMDAGetInterpolationType DMNetworkLayoutSetUp PetscDSSetBdResidual
DMDAGetNeighbors DMNetworkRegisterComponent PetscDSSetJacobian
DMDAGetNonOverlappingRegion DMNetworkSetEdgeList PetscDSSetResidual
DMDAGetNumLocalSubDomains DMNetworkSetNumVariables PetscDSSetRiemannSolver
DMDAGetOffset DMNetworkSetSizes PetscDSSetType
DMDAGetOverlap DMOutputSequenceLoad PetscDTGaussJacobiQuadrature
DMDAGetOwnershipRanges DMPlexCopyCoordinates PetscDTGaussQuadrature
DMDAGetReducedDMDA DMPlexCopyLabels PetscDTGaussTensorQuadrature
DMDAGetRefinementFactor DMPlexCreateClosureIndex PetscDTLegendreEval
DMDA DMPlexCreateDefaultReferenceTree PetscDualSpaceGetDimension
DMDANaturalToGlobalEnd DMPlexCreateLabel PetscDualSpaceGetDM
DMDARestoreCoordinateArray DMPlexCreateReferenceCell PetscDualSpaceGetFunctional
DMDARestoreElements DMPlexDistribute PetscDualSpaceGetNumDof
DMDASetAOType DMPlexEqual PetscDualSpaceGetOrder
DMDASetBoundaryType DMPlexGenerate PetscDualSpaceGetType
DMDASetCoordinateName DMPlexGetAdjacencyUseAnchors PetscDualSpaceLagrangeGetContinuity
DMDASetDof DMPlexGetAdjacencyUseClosure PETSCDUALSPACELAGRANGE
DMDASetElementType DMPlexGetAdjacencyUseCone PetscDualSpaceLagrangeSetContinuity
DMDASetFieldName DMPlexGetAnchors PetscDualSpaceSetDM
DMDASetFieldNames DMPlexGetCoarseDM PetscDualSpaceSetOrder
DMDASetInterpolationType DMPlexGetFullJoin PetscDualSpaceSetType
DMDASetNonOverlappingRegion DMPlexGetFullMeet PETSCDUALSPACESIMPLE
DMDASetNumLocalSubDomains DMPlexGetJoin PetscDualSpaceSimpleSetDimension
DMDASetNumProcs DMPlexGetLabelByNum PetscDualSpaceSimpleSetFunctional
DMDASetOffset DMPlexGetLabel PetscDualSpaceViewFromOptions
DMDASetOverlap DMPlexGetLabelName PETSCFEBASIC
DMDASetOwnershipRanges DMPlexGetMaxProjectionHeight PetscFECompositeGetMapping
DMDASetRefinementFactor DMPlexGetMeet PETSCFECOMPOSITE
DMDASetSizes DMPlexGetNumBoundary PetscFEGetBasisSpace
DMDASetStencilType DMPlexGetNumLabels PetscFEGetDimension
DMDASetStencilWidth DMPlexGetOrdering PetscFEGetDualSpace
DMDAVecGetArrayDOF DMPlexGetPointGlobalField PetscFEGetNumComponents
DMDAVecGetArrayDOFRead DMPlexGetPointGlobal PetscFEGetQuadrature
DMDAVecGetArray DMPlexGetPointLocalField PetscFEGetSpatialDimension
DMDAVecGetArrayRead DMPlexGetPointLocal PetscFEGetTileSizes
DMDAVecRestoreArrayDOF DMPlexGetReferenceTree PetscFEGetType
DMDAVecRestoreArrayDOFRead DMPlexGetTreeChildren PETSCFENONAFFINE
DMDAVecRestoreArray DMPlexGetTree PETSCFEOPENCL
DMDAVecRestoreArrayRead DMPlexGetTreeParent PetscFESetBasisSpace
DMGetApplicationContext DMPlexHasLabel PetscFESetDualSpace
DMGetBlockSize DMPLEX PetscFESetNumComponents
DMGetCoordinateDim DMPlexInterpolate PetscFESetQuadrature
DMGetCoordinateDM DMPlexMatSetClosure PetscFESetTileSizes
DMGetCoordinateSection DMPlexMigrate PetscFESetType
DMGetCoordinates DMPlexPermute PetscFVGetType
DMGetCoordinatesLocal DMPlexPointGlobalFieldRead PETSCFVLEASTSQUARES
DMGetDefaultGlobalSection DMPlexPointGlobalFieldRef PetscFVLeastSquaresSetMaxFaces
DMGetDefaultSection DMPlexPointGlobalRead PetscFVSetDualSpace
DMGetDefaultSF DMPlexPointGlobalRef PetscFVSetType
DMGetDimPoints DMPlexPointLocalFieldRead PETSCFVUPWIND
DMGetLocalToGlobalMapping DMPlexPointLocalFieldRef PetscLimiterGetType
DMGetMatType DMPlexPointLocalRead PETSCLIMITERMC
DMGetOutputDM DMPlexPointLocalRef PETSCLIMITERMINMOD
DMGetOutputSequenceNumber DMPlexRestoreJoin PETSCLIMITERNONE
DMGetPointSF DMPlexRestoreMeet PetscLimiterSetType
DMGetType DMPlexSetAdjacencyUseAnchors PETSCLIMITERSIN
DMGetVecType DMPlexSetAdjacencyUseClosure PETSCLIMITERSUPERBEE
DM DMPlexSetAdjacencyUseCone PETSCLIMITERVANALBADA
DMLabelClearValue DMPlexSetAnchors PETSCLIMITERVANLEER
DMLabelGetValue DMPlexSetCoarseDM PETSCLIMITERZERO
DMLabelInsertIS DMPlexSetReferenceTree PETSCPARTITIONERCHACO
DMLabelSetValue DMPlexSetTree PetscPartitionerGetType
DMLabelStratumHasPoint DMPlexUninterpolate PetscPartitioner
DMLabelView DMPlexVecGetClosure PETSCPARTITIONERPARMETIS
DMLoad DMPlexVecRestoreClosure PetscPartitionerSetType
DMLocalToLocalBegin DMPlexVecSetClosure PETSCPARTITIONERSHELL
DMLocalToLocalEnd DMREDUNDANT PETSCPARTITIONERSIMPLE
DMMoabCreate DMSetApplicationContextDestroy PetscQuadratureExpandComposite
DMMoabGetDofsBlocked DMSetApplicationContext PetscQuadratureGetData
DMMoabGetDofsBlockedLocal DMSetCoordinateDim PetscQuadratureGetOrder
DMMoabGetDofs DMSetCoordinateDM PetscQuadratureSetData
DMMoabGetDofsLocal DMSetCoordinateSection PetscQuadratureSetOrder
DMMoabGetFieldDofs DMSetCoordinates PETSCSPACEDG
DMMoabGetFieldDofsLocal DMSetCoordinatesLocal PetscSpaceGetOrder
DMMoabGetFieldName DMSetDefaultGlobalSection PetscSpaceGetType
DMMoabGetVertexDofsBlocked DMSetDefaultSection PETSCSPACEPOLYNOMIAL
DMMoabGetVertexDofsBlockedLocal DMSetDefaultSF PetscSpaceSetOrder
DMMOAB DMSetMatType PetscSpaceSetType
DMMoabOutput DMSetOutputSequenceNumber VecGetDM
DMMoabSetFieldName DMSetPointSF VecSetDM
DMMoabSetFieldNames DMSetType
DMMoabSetFieldVector DMSetVariableBounds
Advanced - Setting more advanced options and customization
DMCoarsenHookAdd DMGlobalToLocalBeginDefaultShell DMShellSetGlobalToLocal
DMCompositeAddDM DMGlobalToLocalEndDefaultShell DMShellSetGlobalToLocalVecScatter
DMCompositeCreate DMGlobalToLocalHookAdd DMShellSetGlobalVector
DMCompositeGatherArray DMLocalToGlobalBeginDefaultShell DMShellSetLocalToGlobal
DMCompositeGather DMLocalToGlobalEndDefaultShell DMShellSetLocalToGlobalVecScatter
DMCompositeGetAccessArray DMLocalToGlobalHookAdd DMShellSetLocalToLocal
DMCompositeGetAccess DMLocalToLocalBeginDefaultShell DMShellSetLocalToLocalVecScatter
DMCompositeGetEntriesArray DMLocalToLocalEndDefaultShell DMShellSetLocalVector
DMCompositeGetEntries DMPlexComputeCellGeometryAffineFEM DMShellSetMatrix
DMCompositeGetGlobalISs DMPlexComputeCellGeometryFEM DMShellSetRefine
DMCompositeGetISLocalToGlobalMappings DMPlexComputeCellGeometryFVM DMSlicedCreate
DMCompositeGetLocalVectors DMPlexCreateFromDAG DMSlicedSetBlockFills
DMCompositeRestoreAccessArray DMPlexCreateRigidBody DMSlicedSetGhosts
DMCompositeRestoreAccess DMPlexGetAdjacency DMSlicedSetPreallocation
DMCompositeRestoreLocalVectors DMPlexOrient DMSubDomainHookAdd
DMCompositeScatterArray DMPlexReverseCell PetscDSRegisterAll
DMCompositeScatter DMPlexSetMaxProjectionHeight PetscDSRegister
DMCompositeSetCoupling DMRedundantCreate PetscDTReconstructPoly
DMComputeVariableBounds DMRedundantGetSize PetscDualSpaceCreateReferenceCell
DMDACreate DMRedundantSetSize PetscDualSpaceGetHeightSubspace
DMDACreatePF DMRefineHookAdd PetscDualSpaceRegisterAll
DMDAGetArray DMRegisterAll PetscDualSpaceRegister
DMDAGetLogicalCoordinate DMRegister PetscFERegisterAll
DMDAGetProcessorSubset DMSetDefaultConstraints PetscFERegister
DMDAGetProcessorSubsets DMSetOptionsPrefix PetscFVRegisterAll
DMDAGetRay DMShellCreate PetscFVRegister
DMDAGlobalToNaturalAllCreate DMShellSetCoarsen PetscLimiterRegisterAll
DMDAGlobalToNaturalBegin DMShellSetCreateFieldDecomposition PetscLimiterRegister
DMDAGlobalToNaturalEnd DMShellSetCreateGlobalVector PetscPartitionerRegisterAll
DMDANaturalAllToGlobalCreate DMShellSetCreateInjection PetscPartitionerRegister
DMDANaturalToGlobalBegin DMShellSetCreateInterpolation PetscSpaceEvaluate
DMDARestoreArray DMShellSetCreateLocalVector PetscSpaceRegisterAll
DMGetDefaultConstraints DMShellSetCreateMatrix PetscSpaceRegister
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
DMClearGlobalVectors DMPlexCreateSubmesh PetscDSGetAdjacency
DMCoarsenHierarchy DMPlexCreateSubpointIS PetscDSGetImplicit
DMCoarsen DMPlexCreateTwoSidedProcessSF PetscDSInitializePackage
DMCreateColoring DMPlexDerivePointSF PetscDSSetAdjacency
DMCreateDomainDecompositionScatters DMPlexDistributeData PetscDSSetFromOptions
DMCreateInjection DMPlexDistributeField PetscDSSetImplicit
DMCreateInterpolation DMPlexDistributeFieldIS PetscDSSetUp
DMCreateInterpolationScale DMPlexDistributeOwnership PetscDSView
DMDAComputeL2Diff DMPlexGetDepth PetscDualSpaceApply
DMDAComputeL2GradientDiff DMPlexGetDepthLabel PetscDualSpaceDestroy
DMDAConvertToCell DMPlexGetDepthStratum PetscDualSpaceSetFromOptions
DMDACreateNaturalVector DMPlexGetHeightStratum PetscDualSpaceSetUp
DMDACreatePatchIS DMPlexGetHybridBounds PetscDualSpaceView
DMDACreateSection DMPlexGetLabelOutput PetscFEDestroy
DMDAGetCellPoint DMPlexGetMinRadius PetscFEFinalizePackage
DMDAGetNumCells DMPlexGetPartitioner PetscFEInitializePackage
DMDAGetPreallocationCenterDimension DMPlexGetRefinementLimit PetscFEIntegrateBdResidual
DMDAGetScatter DMPlexGetRefinementUniform PetscFEIntegrate
DMDAProjectFunction DMPlexGetSubpointMap PetscFEIntegrateJacobian
DMDASetBlockFills DMPlexInvertCell PetscFEIntegrateResidual
DMDASetGetMatrix DMPlexLabelAddCells PetscFESetFromOptions
DMDASetPreallocationCenterDimension DMPlexLabelCohesiveComplete PetscFESetUp
DMDAVTKWriteAll DMPlexLabelComplete PetscFEView
DMDestroy DMPlexLocalizeCoordinate PetscFVComputeGradient
DMFinalizePackage DMPlexLocalizeCoordinates PetscFVDestroy
DMGetCoarsenLevel DMPlexMarkBoundaryFaces PetscFVFinalizePackage
DMGetDS DMPlexPartitionLabelAdjacency PetscFVGetComputeGradients
DMGetField DMPlexPartitionLabelClosure PetscFVGetDualSpace
DMGetNamedGlobalVector DMPlexPartitionLabelCreateSF PetscFVGetLimiter
DMGetNamedLocalVector DMPlexPartitionLabelInvert PetscFVGetNumComponents
DMGetRefineLevel DMPlexProjectFunction PetscFVGetQuadrature
DMGetWorkArray DMPlexReferenceTreeGetChildSymmetry PetscFVGetSpatialDimension
DMHasColoring DMPlexRemoveLabel PetscFVInitializePackage
DMHasVariableBounds DMPlexSetHybridBounds PetscFVRefine
DMInitializePackage DMPlexSetLabelOutput PetscFVSetComputeGradients
DMInterpolate DMPlexSetMinRadius PetscFVSetFromOptions
DMLabelHasPoint DMPlexSetPartitioner PetscFVSetLimiter
DMLabelHasValue DMPlexSetRefinementLimit PetscFVSetNumComponents
DMLocatePoints DMPlexSetRefinementUniform PetscFVSetQuadrature
DMMoabSetBlockFills DMPlexStratifyMigrationSF PetscFVSetSpatialDimension
DMPlexAddBoundary DMPlexTetgenSetOptions PetscFVSetUp
DMPlexAddLabel DMPlexTriangleSetOptions PetscFVView
DMPlexCheckFaces DMPlexVTKWriteAll PetscLimiterDestroy
DMPlexCheckSkeleton DMRefineHierarchy PetscLimiterSetFromOptions
DMPlexCheckSymmetry DMRefine PetscLimiterSetUp
DMPlexComputeGeometryFVM DMRestoreNamedGlobalVector PetscLimiterView
DMPlexComputeGradientFVM DMRestoreNamedLocalVector PetscPartitionerDestroy
DMPlexComputeIntegralFEM DMRestoreWorkArray PetscPartitionerPartition
DMPlexComputeInterpolatorFEM DMRestrict PetscPartitionerSetFromOptions
DMPlexComputeL2Diff DMSetDS PetscPartitionerSetUp
DMPlexComputeL2FieldDiff DMSetField PetscPartitionerShellSetPartition
DMPlexComputeL2GradientDiff DMSetFromOptions PetscPartitionerView
DMPlexConstructCohesiveCells DMSetMatrixPreallocateOnly PetscQuadrature
DMPlexConstructGhostCells DMSetPeriodicity PetscSectionCreateGlobalSectionLabel
DMPlexCreateCoarsePointIS DMSetUp PetscSpaceDestroy
DMPlexCreateHybridMesh DMSetVec PetscSpaceSetFromOptions
DMPlexCreateOverlap DMSubDomainRestrict PetscSpaceSetUp
DMPlexCreatePartitionerGraph DMView PetscSpaceView
DMPlexCreateProcessSF PetscDSDestroy
DMPlexCreateSection PetscDSFinalizePackage
No deprecated routines

Table of Contents