:orphan: # PCGASMSetTotalSubdomains sets the total number of subdomains to use across the communicator for `PCGASM` ## Synopsis ``` #include "petscpc.h" PetscErrorCode PCGASMSetTotalSubdomains(PC pc, PetscInt N) ``` Logically Collective ## Input Parameters - ***pc -*** the preconditioner - ***N -*** total number of subdomains ## See Also `PCGASM`, `PCGASMSetSubdomains()`, `PCGASMSetOverlap()` `PCGASMCreateSubdomains2D()` ## Level beginner ## Location src/ksp/pc/impls/gasm/gasm.c --- [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)