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

Table of Contents