DA Examples

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

Beginner - Basic usage
DA DALocalInfo PetscViewerBinaryMatlabOpen
DACreate DALocalToGlobal SDA
DACreate1d DALocalToGlobalBegin SDACreate1d
DACreate2d DALocalToGlobalEnd SDACreate2d
DACreate3d DAPeriodicType SDACreate3d
DACreateGlobalVector DARestoreGlobalVector SDADestroy
DACreateLocalVector DARestoreLocalVector SDAGetCorners
DADestroy DASetUniformCoordinates SDAGetGhostCorners
DAElementType DAStencilType SDALocalToLocalBegin
DAGetCorners DAView SDALocalToLocalEnd
DAGetGhostCorners DA_STENCIL_Box SectionIntView
DAGetGlobalVector DA_STENCIL_STAR SectionRealView
DAGetInfo DMComposite Slice
DAGetLocalInfo MeshCreatePCICE assembleMatrix
DAGetLocalVector MeshCreatePyLith assembleVector
DAGlobalToLocalBegin MeshGetMaximumDegree assembleVectorComplete
DAGlobalToLocalEnd MeshView restrictVector
DAInterpolationType PetscViewerBinaryMatlabDestroy
Intermediate - Setting options for algorithms and data structures
BCSectionGetArray DASetLocalAdicMFFunction DMMGSetSNESLocal
BCSectionRealCreate DASetLocalAdicMFFunctioni DMMGSetSNESLocalFD
BCSectionRealGetArray DASetLocalAdicMFFunctionib DMMGSetUser
DACoor2d DASetLocalFunction MeshCoarsenHierarchy
DACoor3d DASetLocalFunctioni MeshDistribute
DAForEachPointBegin2d DASetLocalFunctionib MeshGenerate
DAForEachPointEnd2d DASetLocalJacobian MeshGetCellSectionInt
DAFormFunctionLocal DASetRefinementFactor MeshGetCellSectionReal
DAFormFunctionLocalGhost DAVecGetArray MeshGetCoordinates
DAFormjacobianLocal DAVecGetArrayDOF MeshGetElements
DAGetAO DAVecRestoreArray MeshGetSectionInt
DAGetCoordinateDA DAVecRestoreArrayDOF MeshGetSectionReal
DAGetCoordinates DM MeshGetType
DAGetElements DMMG MeshGetVertexSectionInt
DAGetFieldName DMMGArray MeshGetVertexSectionReal
DAGetGhostedCoordinates DMMGGetB MeshHasSectionInt
DAGetGlobalIndices DMMGGetComm MeshHasSectionReal
DAGetGlobalIndicesF90 DMMGGetDA MeshRefine
DAGetISLocalToGlobalMapping DMMGGetDM MeshSetSectionInt
DAGetISLocalToGlobalMappingBlck DMMGGetDMComposite MeshSetSectionReal
DAGetInjection DMMGGetDMMG MeshSetType
DAGetInterpolation DMMGGetFine PCDMMG
DAGetLocalFunction DMMGGetJ PCDMMGSetDMMG
DAGetRefinementFactor DMMGGetKSP PetscViewerBinaryMatlabOutputBag
DALoad DMMGGetLevels PetscViewerBinaryMatlabOutputVec
DALocalToLocalBegin DMMGGetRHS PetscViewerBinaryMatlabOutputVecDA
DALocalToLocalEnd DMMGGetSNES SNESDAComputeJacobianWithAdic
DANaturalToGlobalEnd DMMGGetUser SNESDAFormFunction
DARestoreElements DMMGGetx SectionGetArray
DASetCoordinates DMMGInitialGuessCurrent SectionIntDistribute
DASetFieldName DMMGSetISColoringType SectionRealDistribute
DASetInterpolationType DMMGSetInitialGuess SectionRealNorm
DASetLocalAdicFunction DMMGSetInitialGuessLocal SectionRealToVec
DASetLocalAdicFunctioni DMMGSetMatType
DASetLocalAdicFunctionib DMMGSetPrefix
Advanced - Setting more advanced options and customization
DAComputeJacobian1 DMCompositeGetEntries SectionIntCreate
DAComputeJacobian1WithAdic DMCompositeGetGlobalIndices SectionIntDestroy
DACreatePF DMCompositeGetInterpolation SectionIntGetBundle
DAFormFunction DMCompositeGetLocalVectors SectionIntGetSection
DAFormFunction1 DMCompositeGetMatrix SectionIntRestrict
DAFormFunctioni1 DMCompositeRefine SectionIntSetBundle
DAFormFunctionib1 DMCompositeRestoreAccess SectionIntSetFiberDimension
DAGetAdicArray DMCompositeRestoreLocalVectors SectionIntSetSection
DAGetAdicMFArray DMCompositeScatter SectionIntUpdate
DAGetAdicMFArrayb DMMGCreate SectionIntUpdateAdd
DAGetArray DMMGDestroy SectionRealAllocate
DAGetColoring DMMGSetDM SectionRealClear
DAGetMatrix DMMGSetKSP SectionRealComplete
DAGetProcessorSubset DMMGSetNullSpace SectionRealCreate
DAGlobalToNaturalAllCreate DMMGSetSNES SectionRealCreateLocalVector
DAGlobalToNaturalBegin DMMGSetUp SectionRealDestroy
DAGlobalToNaturalEnd DMMGSetUseGalerkinCoarse SectionRealDuplicate
DAMultiplyByJacobian1WithAD DMMGSolve SectionRealGetBundle
DAMultiplyByJacobian1WithAdic DMMGView SectionRealGetSection
DAMultiplyByJacobian1WithAdifor MeshCreate SectionRealRestrict
DANaturalAllToGlobalCreate MeshCreateGlobalVector SectionRealSetBundle
DANaturalToGlobalBegin MeshDestroy SectionRealSetFiberDimension
DARefine MeshGetGlobalIndices SectionRealSetSection
DARestoreAdicArray MeshGetMatrix SectionRealUpdate
DARestoreAdicMFArray MeshGetMesh SectionRealUpdateAdd
DARestoreArray MeshLoad SectionRealZero
DMCompositeAddArray MeshRegister SlicedCreate
DMCompositeAddDA MeshRegisterAll SlicedCreateGlobalVector
DMCompositeCreate MeshRegisterDestroy SlicedDestroy
DMCompositeCreateGlobalVector MeshSetMesh SlicedGetGlobalIndices
DMCompositeDestroy PCICERenumberBoundary SlicedGetMatrix
DMCompositeGather SectionIntAllocate SlicedSetGhosts
DMCompositeGetAccess SectionIntClear SlicedSetPreallocation
DMCompositeGetColoring SectionIntComplete
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
DACreateNaturalVector DMCreateGlobalVector DMRefineHierarchy
DAGetScatter DMDestroy DMView
DASetBlockFills DMGetColoring MeshCompatCreatePyLith
DASetGetMatrix DMGetInjection MeshCompatGetMesh
DASetMatPreallocateOnly DMGetInterpolation MeshCompatSetMesh
DMCoarsen DMGetMatrix
DMCoarsenHierarchy DMRefine
No deprecated routines

Table of Contents