# PetscSectionSetClosureIndex
Set a cache of points in the closure of each point in the section 
## Synopsis
```
#include "petscsection.h"   
PetscErrorCode PetscSectionSetClosureIndex(PetscSection section, PetscObject obj, PetscSection clSection, IS clPoints)
```
Collective


## Input Parameters

- ***section   -*** The `PetscSection`
- ***obj       -*** A `PetscObject` which serves as the key for this index
- ***clSection -*** `PetscSection` giving the size of the closure of each point
- ***clPoints  -*** `IS` giving the points in each closure





## Note
We compress out closure points with no dofs in this section


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

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/is/section/interface/section.c.html#PetscSectionSetClosureIndex">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)  
