:orphan: # PetscCommRestoreComm restores an MPI communicator that was obtained with `PetscCommGetComm()` ## Synopsis ``` #include "petscsys.h" PetscErrorCode PetscCommRestoreComm(MPI_Comm comm_in, MPI_Comm *comm_out) ``` Collective ## Input Parameters - ***comm_in -*** Input communicator - ***comm_out -*** returned communicator ## See Also `PetscObjectGetNewTag()`, `PetscCommGetNewTag()`, `PetscCommDestroy()`, `PetscCommRestoreComm()` ## Level developer ## Location src/sys/objects/tagm.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/objects/tagm.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)