petsc-master 2014-09-17
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
DMClone DMMoabGetLocalElements DMPlexGetCone
DMCompositeGetNumberDM DMMoabGetLocalSize DMPlexGetConeOrientation
DMCreateGlobalVector DMMoabGetLocalToGlobalTag DMPlexGetConeSize
DMCreate DMMoabGetLocalVertices DMPlexGetLabelIdIS
DMCreateLocalVector DMMoabGetMaterialBlock DMPlexGetLabelSize
DMCreateMatrix DMMoabGetOffset DMPlexGetLabelValue
DMDACreate1d DMMoabGetParallelComm DMPlexGetMaxSizes
DMDACreate2d DMMoabGetSize DMPlexGetStratumIS
DMDACreate3d DMMoabGetVecRange DMPlexGetStratumSize
DMDAElementType DMMoabGetVecTag DMPlexGetSupport
DMDAGetBoundingBox DMMoabGetVertexConnectivity DMPlexGetSupportSize
DMDAGetCorners DMMoabGetVertexCoordinates DMPlexGetTransitiveClosure
DMDAGetGhostCorners DMMoabIsEntityOnBoundary DMPlexGetTransitiveClosure_Internal
DMDAGetInfo DMMoabLoadFromFile DMPlexRestoreTransitiveClosure
DMDAGetLocalBoundingBox DMMoabRestoreVertexConnectivity DMPlexSetChart
DMDAGetLocalInfo DMMoabSetBlockSize DMPlexSetCone
DMDAInterpolationType DMMoabSetInterface DMPlexSetConeOrientation
DMDALocalInfo DMMoabSetLocalElements DMPlexSetConeSize
DMDASetUniformCoordinates DMMoabSetLocalToGlobalTag DMPlexSetLabelValue
DMDA_STENCIL_BOX DMMoabSetLocalVertices DMPlexSetSupport
DMDA_STENCIL_STAR DMMoabSetParallelComm DMPlexSetSupportSize
DMDAStencilType DMNetworkCreate DMPlexStratify
DMGetDimension DMPatchCreate DMPlexSymmetrize
DMGetGlobalVector DMPlexAddConeSize DMRestoreGlobalVector
DMGetLocalVector DMPlexClearLabelStratum DMRestoreLocalVector
DMGlobalToLocalBegin DMPlexClearLabelValue DMSetDimension
DMGlobalToLocalEnd DMPlexCreateBoxMesh PetscDSCreate
DMLocalToGlobalBegin DMPlexCreateCGNS PetscDualSpaceCreate
DMLocalToGlobalEnd DMPlexCreateCubeBoundary PetscDualSpaceDuplicate
DMMoabCreateBoxMesh DMPlexCreateDoublet PetscFECreateDefault
DMMoabCreateVector DMPlexCreateExodus PetscFECreate
DMMoabGetAllVertices DMPlexCreateFromCellList PetscFVCreate
DMMoabGetBlockSize DMPlexCreateGmsh PetscLimiterCreate
DMMoabGetBoundaryMarkers DMPlexCreateHexBoxMesh PetscQuadratureCreate
DMMoabGetDimension DMPlexCreate PetscQuadratureDestroy
DMMoabGetElementConnectivity DMPlexCreateSquareBoundary PetscQuadratureView
DMMoabGetFieldDof DMPlexCreateSquareMesh PetscSpaceCreate
DMMoabGetInterface DMPlexGetChart
Intermediate - Setting options for algorithms and data structures
DMCompositeGetLocalISs DMMoabGetFieldDofsLocal DMSetDefaultSection
DMCOMPOSITE DMMoabGetFieldName DMSetDefaultSF
DMComputeVariableBounds DMMoabGetVertexDofsBlocked DMSetMatType
DMConvert DMMoabGetVertexDofsBlockedLocal DMSetOutputSequenceNumber
DMCreateAggregates DMMOAB DMSetPointSF
DMCreateDefaultSF DMMoabOutput DMSetType
DMCreateDomainDecomposition DMMoabSetFieldName DMSetVariableBounds
DMCreateFieldDecomposition DMMoabSetFieldNames DMSetVecType
DMCreateFieldIS DMMoabSetFieldVector DMSLICED
DMCreateSubDM DMMoabSetGlobalFieldVector MatCreateSeqUSFFT
DMDACoor2d DMMoabVecGetArray MatGetDM
DMDACoor3d DMMoabVecGetArrayRead MATHYPRESSTRUCT
DMDAGetAO DMMoabVecRestoreArray MATHYPRESTRUCT
DMDAGetCoordinateName DMNetworkAddComponent MatSetDM
DMDAGetElements DMNetworkAddNumVariables MatSetupDM
DMDAGetElementType DMNetworkDistribute PETSCDSBASIC
DMDAGetFieldName DMNetworkGetComponentDataArray PetscDSGetBdTabulation
DMDAGetInterpolationType DMNetworkGetComponentTypeOffset PetscDSGetTabulation
DMDAGetNeighbors DMNetworkGetConnectedNodes PetscDSGetType
DMDAGetNonOverlappingRegion DMNetworkGetEdgeRange PetscDSSetType
DMDAGetNumLocalSubDomains DMNetworkGetNumComponents PetscDTGaussJacobiQuadrature
DMDAGetOffset DMNetworkGetSupportingEdges PetscDTGaussQuadrature
DMDAGetOverlap DMNetworkGetVariableGlobalOffset PetscDTGaussTensorQuadrature
DMDAGetOwnershipRanges DMNetworkGetVariableOffset PetscDTLegendreEval
DMDAGetReducedDMDA DMNetworkGetVertexRange PetscDualSpaceGetDimension
DMDAGetRefinementFactor DMNETWORK PetscDualSpaceGetDM
DMDA DMNetworkIsGhostVertex PetscDualSpaceGetFunctional
DMDANaturalToGlobalEnd DMNetworkLayoutSetUp PetscDualSpaceGetNumDof
DMDARestoreElements DMNetworkRegisterComponent PetscDualSpaceGetOrder
DMDASetBoundaryType DMNetworkSetEdgeList PetscDualSpaceGetType
DMDASetCoordinateName DMNetworkSetNumVariables PetscDualSpaceLagrangeGetContinuity
DMDASetDof DMNetworkSetSizes PETSCDUALSPACELAGRANGE
DMDASetElementType DMOutputSequenceLoad PetscDualSpaceLagrangeSetContinuity
DMDASetFieldName DMPlexCopyCoordinates PetscDualSpaceSetDM
DMDASetInterpolationType DMPlexCopyLabels PetscDualSpaceSetOrder
DMDASetNonOverlappingRegion DMPlexCreateClosureIndex PetscDualSpaceSetType
DMDASetNumLocalSubDomains DMPlexCreateLabel PetscDualSpaceViewFromOptions
DMDASetNumProcs DMPlexDistribute PETSCFEBASIC
DMDASetOffset DMPlexEqual PETSCFECOMPOSITE
DMDASetOverlap DMPlexGenerate PetscFEGetBasisSpace
DMDASetOwnershipRanges DMPlexGetAdjacencyUseClosure PetscFEGetDimension
DMDASetRefinementFactor DMPlexGetAdjacencyUseCone PetscFEGetDualSpace
DMDASetSizes DMPlexGetCoarseDM PetscFEGetNumComponents
DMDASetStencilType DMPlexGetFullJoin PetscFEGetQuadrature
DMDASetStencilWidth DMPlexGetFullMeet PetscFEGetSpatialDimension
DMDAVecGetArrayDOF DMPlexGetJoin PetscFEGetTileSizes
DMDAVecGetArray DMPlexGetLabel PetscFEGetType
DMDAVecRestoreArrayDOF DMPlexGetLabelName PETSCFENONAFFINE
DMDAVecRestoreArray DMPlexGetMeet PETSCFEOPENCL
DMGetApplicationContext DMPlexGetNumLabels PetscFESetBasisSpace
DMGetBlockSize DMPlexGetOrdering PetscFESetDualSpace
DMGetCoordinateDim DMPlexGetPointGlobal PetscFESetNumComponents
DMGetCoordinateDM DMPlexGetPointLocal PetscFESetQuadrature
DMGetCoordinateSection DMPlexHasLabel PetscFESetTileSizes
DMGetCoordinates DMPLEX PetscFESetType
DMGetCoordinatesLocal DMPlexInterpolate PetscFVGetType
DMGetDefaultGlobalSection DMPlexMatSetClosure PETSCFVLEASTSQUARES
DMGetDefaultSection DMPlexPermute PetscFVLeastSquaresSetMaxFaces
DMGetDefaultSF DMPlexPointGlobalRead PetscFVSetType
DMGetDimPoints DMPlexPointGlobalRef PETSCFVUPWIND
DMGetLocalToGlobalMapping DMPlexPointLocalRead PetscLimiterGetType
DMGetMatType DMPlexPointLocalRef PETSCLIMITERMC
DMGetOutputDM DMPlexRestoreJoin PETSCLIMITERMINMOD
DMGetOutputSequenceNumber DMPlexRestoreMeet PETSCLIMITERNONE
DMGetPointSF DMPlexSetAdjacencyUseClosure PetscLimiterSetType
DMGetType DMPlexSetAdjacencyUseCone PETSCLIMITERSIN
DMGetVecType DMPlexSetCoarseDM PETSCLIMITERSUPERBEE
DMLabelClearValue DMPlexUninterpolate PETSCLIMITERVANALBADA
DMLabelGetValue DMPlexVecGetClosure PETSCLIMITERVANLEER
DMLabelSetValue DMPlexVecRestoreClosure PETSCLIMITERZERO
DMLabelStratumHasPoint DMPlexVecSetClosure PetscQuadratureGetData
DMLoad DMREDUNDANT PetscQuadratureSetData
DMLocalToLocalBegin DMSetApplicationContextDestroy PETSCSPACEDG
DMLocalToLocalEnd DMSetApplicationContext PetscSpaceGetType
DMMoabCreate DMSetCoordinateDim PETSCSPACEPOLYNOMIAL
DMMoabGetDofsBlocked DMSetCoordinateDM PetscSpaceSetType
DMMoabGetDofsBlockedLocal DMSetCoordinateSection VecGetDM
DMMoabGetDofs DMSetCoordinates VecSetDM
DMMoabGetDofsLocal DMSetCoordinatesLocal
DMMoabGetFieldDofs DMSetDefaultGlobalSection
Advanced - Setting more advanced options and customization
DMCoarsenHookAdd DMDANaturalAllToGlobalCreate DMShellSetGlobalToLocalVecScatter
DMCompositeAddDM DMDANaturalToGlobalBegin DMShellSetGlobalVector
DMCompositeCreate DMDARestoreArray DMShellSetLocalToGlobal
DMCompositeGatherArray DMGlobalToLocalBeginDefaultShell DMShellSetLocalToGlobalVecScatter
DMCompositeGather DMGlobalToLocalEndDefaultShell DMShellSetLocalToLocal
DMCompositeGetAccessArray DMGlobalToLocalHookAdd DMShellSetLocalToLocalVecScatter
DMCompositeGetAccess DMLocalToGlobalBeginDefaultShell DMShellSetLocalVector
DMCompositeGetEntriesArray DMLocalToGlobalEndDefaultShell DMShellSetMatrix
DMCompositeGetEntries DMLocalToLocalBeginDefaultShell DMSlicedCreate
DMCompositeGetGlobalISs DMLocalToLocalEndDefaultShell DMSlicedSetBlockFills
DMCompositeGetISLocalToGlobalMappings DMPlexComputeCellGeometryAffineFEM DMSlicedSetGhosts
DMCompositeGetLocalVectors DMPlexComputeCellGeometryFEM DMSlicedSetPreallocation
DMCompositeRestoreAccessArray DMPlexComputeCellGeometryFVM DMSubDomainHookAdd
DMCompositeRestoreAccess DMPlexCreateFromDAG PetscDSRegisterAll
DMCompositeRestoreLocalVectors DMPlexCreateRigidBody PetscDSRegister
DMCompositeScatterArray DMPlexGetAdjacency PetscDTReconstructPoly
DMCompositeScatter DMRedundantCreate PetscDualSpaceCreateReferenceCell
DMCompositeSetCoupling DMRedundantGetSize PetscDualSpaceRegisterAll
DMDACreate DMRedundantSetSize PetscDualSpaceRegister
DMDACreatePF DMRefineHookAdd PetscFERegisterAll
DMDAGetArray DMRegisterAll PetscFERegister
DMDAGetLogicalCoordinate DMRegister PetscFVRegisterAll
DMDAGetProcessorSubset DMSetOptionsPrefix PetscFVRegister
DMDAGetProcessorSubsets DMShellCreate PetscLimiterRegisterAll
DMDAGetRay DMShellSetCreateGlobalVector PetscLimiterRegister
DMDAGlobalToNaturalAllCreate DMShellSetCreateLocalVector PetscSpaceEvaluate
DMDAGlobalToNaturalBegin DMShellSetCreateMatrix PetscSpaceRegisterAll
DMDAGlobalToNaturalEnd DMShellSetGlobalToLocal PetscSpaceRegister
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
DMClearGlobalVectors DMPlexComputeL2GradientDiff PetscDSDestroy
DMCoarsenHierarchy DMPlexConstructCohesiveCells PetscDSFinalizePackage
DMCoarsen DMPlexConstructGhostCells PetscDSInitializePackage
DMCreateColoring DMPlexCreateCoarsePointIS PetscDSSetFromOptions
DMCreateDomainDecompositionScatters DMPlexCreateHybridMesh PetscDSSetUp
DMCreateInjection DMPlexCreateSection PetscDSView
DMCreateInterpolation DMPlexCreateSubmesh PetscDualSpaceApply
DMCreateInterpolationScale DMPlexCreateSubpointIS PetscDualSpaceDestroy
DMDAComputeL2Diff DMPlexDistributeData PetscDualSpaceSetFromOptions
DMDAComputeL2GradientDiff DMPlexDistributeField PetscDualSpaceSetUp
DMDAConvertToCell DMPlexGetDepth PetscDualSpaceView
DMDACreateNaturalVector DMPlexGetDepthLabel PetscFEDestroy
DMDACreatePatchIS DMPlexGetDepthStratum PetscFEFinalizePackage
DMDACreateSection DMPlexGetHeightStratum PetscFEInitializePackage
DMDAGetCellPoint DMPlexGetHybridBounds PetscFEIntegrateBdResidual
DMDAGetNumCells DMPlexGetRefinementLimit PetscFEIntegrate
DMDAGetPreallocationCenterDimension DMPlexGetRefinementUniform PetscFEIntegrateResidual
DMDAGetScatter DMPlexGetSubpointMap PetscFERefine
DMDAProjectFunction DMPlexInvertCell PetscFESetFromOptions
DMDASetBlockFills DMPlexLabelAddCells PetscFESetUp
DMDASetGetMatrix DMPlexLabelCohesiveComplete PetscFEView
DMDASetPreallocationCenterDimension DMPlexLabelComplete PetscFVComputeGradient
DMDAVTKWriteAll DMPlexMarkBoundaryFaces PetscFVDestroy
DMDestroy DMPlexProjectField PetscFVFinalizePackage
DMFinalizePackage DMPlexProjectFunction PetscFVGetComputeGradients
DMGetCoarsenLevel DMPlexRemoveLabel PetscFVGetLimiter
DMGetDS DMPlexSetHybridBounds PetscFVGetNumComponents
DMGetField DMPlexSetRefinementLimit PetscFVGetSpatialDimension
DMGetNamedGlobalVector DMPlexSetRefinementUniform PetscFVInitializePackage
DMGetNamedLocalVector DMPlexSNESComputeJacobianFEM PetscFVSetComputeGradients
DMGetRefineLevel DMPlexSNESComputeResidualFEM PetscFVSetFromOptions
DMGetWorkArray DMPlexTSComputeIFunctionFEM PetscFVSetLimiter
DMHasColoring DMPlexVTKWriteAll PetscFVSetNumComponents
DMHasVariableBounds DMRefineHierarchy PetscFVSetSpatialDimension
DMInitializePackage DMRefine PetscFVSetUp
DMInterpolate DMRestoreNamedGlobalVector PetscFVView
DMLabelHasPoint DMRestoreNamedLocalVector PetscLimiterDestroy
DMLabelHasValue DMRestoreWorkArray PetscLimiterSetFromOptions
DMLocatePoints DMRestrict PetscLimiterSetUp
DMMoabSetBlockFills DMSetDS PetscLimiterView
DMPlexAddLabel DMSetField PetscQuadrature
DMPlexCheckFaces DMSetFromOptions PetscSectionCreateGlobalSectionLabel
DMPlexCheckSkeleton DMSetMatrixPreallocateOnly PetscSpaceDestroy
DMPlexCheckSymmetry DMSetUp PetscSpaceSetFromOptions
DMPlexComputeIntegralFEM DMSetVec PetscSpaceSetUp
DMPlexComputeInterpolatorFEM DMSubDomainRestrict PetscSpaceView
DMPlexComputeL2Diff DMView
No deprecated routines

Table of Contents