:orphan: # 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 Parameter - ***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 src/vec/is/section/interface/section.c --- [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](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)