# PetscSectionGetClosureInversePermutation
Get the inverse dof permutation for the closure of each cell in the section, meaning clPerm[oldIndex] = newIndex. 
## Synopsis
```
#include "petscsection.h"   
PetscErrorCode PetscSectionGetClosureInversePermutation(PetscSection section, PetscObject obj, PetscInt depth, PetscInt clSize, IS *perm)
```
Not Collective


## Input Parameters

- ***section   -*** The `PetscSection`
- ***obj       -*** A `PetscObject` which serves as the key for this index (usually a `DM`)
- ***depth     -*** Depth stratum on which to obtain closure permutation
- ***clSize    -*** Closure size to be permuted (e.g., may vary with element topology and degree)



## Output Parameters

- ***perm -*** The dof closure permutation





## Note
The user must destroy the `IS` that is returned.


## See Also
 [PetscSection](sec_petscsection), `PetscSection`, `IS`, `PetscSectionSetClosurePermutation()`, `PetscSectionGetClosureIndex()`, `PetscSectionSetClosureIndex()`, `DMPlexCreateClosureIndex()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/is/section/interface/section.c.html#PetscSectionGetClosureInversePermutation">src/vec/is/section/interface/section.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/is/section/interface/section.c)


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