# PCGASMSetTotalSubdomains
sets the total number of subdomains to use across the communicator for `PCGASM` Logically collective on pc 
## Synopsis
```
#include "petscpc.h" 
PetscErrorCode PCGASMSetTotalSubdomains(PC pc, PetscInt N)
```

## Input Parameters

- ***pc  -*** the preconditioner
- ***N   -*** total number of subdomains





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

## Level
beginner

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


---
[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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
