:orphan: # DMDAMapMatStencilToGlobal Map a list of `MatStencil` on a grid to global indices. ## Synopsis ``` #include "petscdmda.h" PetscErrorCode DMDAMapMatStencilToGlobal(DM da, PetscInt m, const MatStencil idxm[], PetscInt gidxm[]) ``` Not Collective ## Input Parameters - ***da -*** the `DMDA` object - ***m -*** number of MatStencils - ***idxm -*** grid points (and component number when dof > 1) ## Output Parameter - ***gidxm -*** global row indices ## See Also `DM`, `DMDA`, `MatStencil` ## Level intermediate ## Location src/dm/impls/da/da.c ## Examples src/snes/tutorials/ex55k.kokkos.cxx
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/da/da.c) [Index of all DMDA routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)