:orphan:
# DMProductSetDimensionIndex
Set the dimension index associated with a given slot/sub-`DM` 
## Synopsis
```
PETSC_EXTERN PetscErrorCode DMProductSetDimensionIndex(DM dm, PetscInt slot, PetscInt idx)
```
Not Collective


## Input Parameters

- ***dm -*** the `DMPRODUCT`
- ***slot -*** which dimension slot, in the range 0 to dim-1
- ***idx -*** the dimension index of the sub-`DM`





## See Also
 `DMPRODUCT`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/product/productutils.c.html#DMProductSetDimensionIndex">src/dm/impls/product/productutils.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/product/productutils.c)


[Index of all DMPRODUCT routines](index.md)  
[Table of Contents for all manual pages](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
