:orphan: # PetscSubcommSetNumber Set total number of subcommunicators desired in the given `PetscSubcomm` ## Synopsis ``` #include "petscsys.h" PetscErrorCode PetscSubcommSetNumber(PetscSubcomm psubcomm, PetscInt nsubcomm) ``` Collective ## Input Parameters - ***psubcomm -*** `PetscSubcomm` context - ***nsubcomm -*** the total number of subcommunicators in psubcomm ## See Also `PetscSubcomm`, `PetscSubcommCreate()`, `PetscSubcommDestroy()`, `PetscSubcommSetType()`, `PetscSubcommSetTypeGeneral()` ## Level advanced ## Location src/sys/objects/subcomm.c ## Examples src/ksp/ksp/tutorials/ex73.c
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/objects/subcomm.c) [Index of all Sys routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)