PETSc version 3.15.5
DMStagGetProductCoordinateLocationSlot
get slot for use with local product coordinate arrays 
Synopsis
PETSC_EXTERN PetscErrorCode DMStagGetProductCoordinateLocationSlot(DM dm,DMStagStencilLocation loc,PetscInt *slot)
Not Collective
High-level helper function to get slot indices for 1D coordinate DMs,
for use with DMStagGetProductCoordinateArrays() and related functions.
Input Parameters
|  | dm | - the DMStag object | 
|  | loc | - the grid location | 
Output Parameter
|  | slot | - the index to use in local arrays | 
Notes
Checks that the coordinates are actually set up so that using the
slots from the first 1d coordinate sub-DM is valid for all the 1D coordinate sub-DMs.
See Also
 DMSTAG, DMPRODUCT, DMStagGetProductCoordinateArrays(), DMStagGetProductCoordinateArraysRead(), DMStagSetUniformCoordinates()
Level
intermediate
Location
src/dm/impls/stag/stagutils.c
Examples
src/dm/impls/stag/tutorials/ex2.c.html
src/dm/impls/stag/tutorials/ex6.c.html
Index of all DMSTAG routines
Table of Contents for all manual pages
Index of all manual pages