# ISContiguousLocal
Locates an index set with contiguous range within a global range, if possible 
## Synopsis
```
#include "petscis.h" 
PetscErrorCode ISContiguousLocal(IS is, PetscInt gstart, PetscInt gend, PetscInt *start, PetscBool *contig)
```
Not Collective


## Input Parameters

- ***is -*** the index set
- ***gstart -*** global start
- ***gend -*** global end



## Output Parameters

- ***start -*** start of contiguous block, as an offset from gstart
- ***contig -*** PETSC_TRUE if the index set refers to contiguous entries on this process, else PETSC_FALSE





## See Also
 `ISGetLocalSize()`, `VecGetOwnershipRange()`

## Level
developer

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

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/is/is/impls/general/general.c.html#ISContiguousLocal_General">ISContiguousLocal_General in src/vec/is/is/impls/general/general.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/is/is/impls/stride/stride.c.html#ISContiguousLocal_Stride">ISContiguousLocal_Stride in src/vec/is/is/impls/stride/stride.c</A><BR>


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


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