DA Examples

DA objects are used to manage parallel communications for structured mesh problems in PDE-based (or other) simulations.

Beginner - Basic usage
ADDACreateGlobalVector DALocalToGlobal MeshGetLabelSize
ADDADestroy DALocalToGlobalBegin MeshGetMaximumDegree
ADDAGetCorners DALocalToGlobalEnd MeshGetStratum
ADDAGetGhostCorners DAPeriodicType MeshGetStratumSize
ADDAGetMatrix DARestoreGlobalVector MeshView
ADDAGetMatrixNS DARestoreLocalVector PetscViewerBinaryMatlabDestroy
ADDAMatSetValues DASetUniformCoordinates PetscViewerBinaryMatlabOpen
DA DAStencilType SDA
DACreate DAView SDACreate1d
DACreate1d DA_STENCIL_Box SDACreate2d
DACreate2d DA_STENCIL_STAR SDACreate3d
DACreate3d DMComposite SDADestroy
DACreateGlobalVector DMCompositeGetNumberDM SDAGetCorners
DACreateLocalVector DMGetGlobalVector SDAGetGhostCorners
DADestroy DMGetLocalVector SDALocalToLocalBegin
DAElementType DMGlobalToLocalBegin SDALocalToLocalEnd
DAGetCorners DMGlobalToLocalEnd SectionIntView
DAGetGhostCorners DMLocalToGlobal SectionRealView
DAGetGlobalVector DMRestoreGlobalVector Slice
DAGetInfo DMRestoreLocalVector SlicedGlobalToLocalBegin
DAGetLocalInfo MeshCreateExodus SlicedGlobalToLocalEnd
DAGetLocalVector MeshCreatePCICE assembleMatrix
DAGlobalToLocalBegin MeshCreatePFLOTRAN assembleVector
DAGlobalToLocalEnd MeshCreatePyLith assembleVectorComplete
DAInterpolationType MeshExodusGetInfo restrictVector
DALocalInfo MeshGetLabelIds
Intermediate - Setting options for algorithms and data structures
ADDACreate DASetLocalAdicMFFunction DMMGSetSNESLocalFD
ADDAGetAggregates DASetLocalAdicMFFunctioni DMMGSetUser
BCSectionGetArray DASetLocalAdicMFFunctionib DMRestoreElements
BCSectionRealCreate DASetLocalFunction MatCreateSeqUSFFT
BCSectionRealGetArray DASetLocalFunctioni MeshCoarsenHierarchy
DACoor2d DASetLocalFunctionib MeshDistribute
DACoor3d DASetLocalJacobian MeshGenerate
DAForEachPointBegin2d DASetRefinementFactor MeshGetCellSectionInt
DAForEachPointEnd2d DAVecGetArray MeshGetCellSectionReal
DAFormFunctionLocal DAVecGetArrayDOF MeshGetCoordinates
DAFormFunctionLocalGhost DAVecRestoreArray MeshGetElements
DAFormjacobianLocal DAVecRestoreArrayDOF MeshGetSectionInt
DAGetAO DM MeshGetSectionReal
DAGetAggregates DMGetAggregates MeshGetType
DAGetCoordinateDA DMGetElements MeshGetVertexSectionInt
DAGetCoordinates DMMG MeshGetVertexSectionReal
DAGetFieldName DMMGArray MeshHasSectionInt
DAGetGhostedCoordinates DMMGGetB MeshHasSectionReal
DAGetGlobalIndices DMMGGetComm MeshRefine
DAGetGlobalIndicesF90 DMMGGetDA MeshRestrictClosure
DAGetISLocalToGlobalMapping DMMGGetDM MeshSetSectionInt
DAGetISLocalToGlobalMappingBlck DMMGGetDMComposite MeshSetSectionReal
DAGetInjection DMMGGetDMMG MeshSetType
DAGetInterpolation DMMGGetFine MeshUpdateClosure
DAGetLocalFunction DMMGGetJ PCDMMG
DAGetLocalJacobian DMMGGetKSP PCDMMGSetDMMG
DAGetNeighbors DMMGGetLevels PetscViewerBinaryMatlabOutputBag
DAGetOwnershipRanges DMMGGetRHS PetscViewerBinaryMatlabOutputVec
DAGetRefinementFactor DMMGGetSNES PetscViewerBinaryMatlabOutputVecDA
DALoad DMMGGetSNESLocal SNESDAComputeJacobianWithAdic
DALocalToLocalBegin DMMGGetUser SNESDAFormFunction
DALocalToLocalEnd DMMGGetx SectionGetArray
DANaturalToGlobalEnd DMMGInitialGuessCurrent SectionIntDistribute
DASetCoordinates DMMGSetISColoringType SectionRealAXPY
DASetFieldName DMMGSetInitialGuess SectionRealDistribute
DASetInterpolationType DMMGSetInitialGuessLocal SectionRealNorm
DASetLocalAdicFunction DMMGSetMatType SectionRealSet
DASetLocalAdicFunctioni DMMGSetOptionsPrefix
DASetLocalAdicFunctionib DMMGSetSNESLocal
Advanced - Setting more advanced options and customization
ADDA DMCompositeGetInterpolation SectionIntAllocate
DACoarsen DMCompositeGetLocalISs SectionIntClear
DAComputeJacobian1 DMCompositeGetLocalVectors SectionIntComplete
DAComputeJacobian1WithAdic DMCompositeGetMatrix SectionIntCreate
DACreatePF DMCompositeGlobalToLocalBegin SectionIntDestroy
DAFormFunction DMCompositeGlobalToLocalEnd SectionIntGetBundle
DAFormFunction1 DMCompositeRefine SectionIntGetSection
DAFormFunctioni1 DMCompositeRestoreAccess SectionIntRestrict
DAFormFunctionib1 DMCompositeRestoreLocalVectors SectionIntSetBundle
DAGetAdicArray DMCompositeScatter SectionIntSetFiberDimension
DAGetAdicMFArray DMCompositeSetContext SectionIntSetSection
DAGetAdicMFArrayb DMCompositeSetCoupling SectionIntUpdate
DAGetArray DMMGCreate SectionIntUpdateAdd
DAGetColoring DMMGDestroy SectionRealAllocate
DAGetMatrix DMMGSetDM SectionRealClear
DAGetProcessorSubset DMMGSetFromOptions SectionRealComplete
DAGlobalToNaturalAllCreate DMMGSetKSP SectionRealCreate
DAGlobalToNaturalBegin DMMGSetNullSpace SectionRealCreateLocalVector
DAGlobalToNaturalEnd DMMGSetSNES SectionRealDestroy
DAMultiplyByJacobian1WithAD DMMGSetUp SectionRealDuplicate
DAMultiplyByJacobian1WithAdic DMMGSetUseGalerkinCoarse SectionRealGetBundle
DAMultiplyByJacobian1WithAdifor DMMGSolve SectionRealGetSection
DANaturalAllToGlobalCreate DMMGView SectionRealRestrict
DANaturalToGlobalBegin MeshCreate SectionRealSetBundle
DARefine MeshCreateGlobalRealVector SectionRealSetFiberDimension
DARestoreAdicArray MeshCreateGlobalScatter SectionRealSetSection
DARestoreAdicMFArray MeshCreateGlobalVector SectionRealToVec
DARestoreArray MeshCreateLocalVector SectionRealUpdate
DMCompositeAddArray MeshCreateMatrix SectionRealUpdateAdd
DMCompositeAddDM MeshCreateVector SectionRealZero
DMCompositeCreate MeshDestroy SlicedCreate
DMCompositeCreateGlobalVector MeshGetGlobalIndices SlicedCreateGlobalVector
DMCompositeCreateLocalVector MeshGetMatrix SlicedCreateLocalVector
DMCompositeDestroy MeshGetMesh SlicedDestroy
DMCompositeGather MeshLoad SlicedGetGlobalIndices
DMCompositeGetAccess MeshRegister SlicedGetMatrix
DMCompositeGetColoring MeshRegisterAll SlicedSetGhosts
DMCompositeGetContext MeshRegisterDestroy SlicedSetPreallocation
DMCompositeGetEntries MeshSetMesh
DMCompositeGetGlobalISs PCICERenumberBoundary
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
ADDACoarsen DACreateNaturalVector DMDestroy
ADDAGetColoring DAGetScatter DMGetColoring
ADDAGetInjection DASetBlockFills DMGetInjection
ADDAGetInterpolation DASetGetMatrix DMGetInterpolation
ADDAHCiter DASetMatPreallocateOnly DMGetInterpolationScale
ADDAHCiterStartup DMCoarsen DMGetMatrix
ADDARefine DMCoarsenHierarchy DMRefine
ADDASetRefinement DMCreateGlobalVector DMRefineHierarchy
ADDAView DMCreateLocalVector DMView
No deprecated routines

Table of Contents