:orphan: # PetscSubcommDestroy Destroys a `PetscSubcomm` object ## Synopsis ``` #include "petscsys.h" PetscErrorCode PetscSubcommDestroy(PetscSubcomm *psubcomm) ``` Collective ## Input Parameter . psubcomm - the `PetscSubcomm` context ## See Also `PetscSubcommCreate()`, `PetscSubcommSetType()` ## 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)