:orphan:
# PCGASMSetSortIndices
Determines whether subdomain indices are sorted. 
## Synopsis
```
#include "petscpc.h" 
PetscErrorCode PCGASMSetSortIndices(PC pc, PetscBool doSort)
```
Logically Collective


## Input Parameters

- ***pc  -*** the preconditioner context
- ***doSort -*** sort the subdomain indices





## See Also
 `PCGASM`, `PCGASMSetSubdomains()`, `PCGASMGetSubKSP()`,
`PCGASMCreateSubdomains2D()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/impls/gasm/gasm.c.html#PCGASMSetSortIndices">src/ksp/pc/impls/gasm/gasm.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/impls/gasm/gasm.c.html#PCGASMSetSortIndices_GASM">PCGASMSetSortIndices_GASM in src/ksp/pc/impls/gasm/gasm.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/pc/impls/gasm/gasm.c)


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