# PetscShmCommGetMpiShmComm
Returns the MPI communicator that represents all processes with common shared memory 
## Synopsis
```
#include "petscsys.h"  
PetscErrorCode PetscShmCommGetMpiShmComm(PetscShmComm pshmcomm, MPI_Comm *comm)
```

## Input Parameter

- ***pshmcomm -*** PetscShmComm object obtained with PetscShmCommGet()



## Output Parameter

- ***comm     -*** the MPI communicator





## See Also
 `PetscShmCommGlobalToLocal()`, `PetscShmCommGet()`, `PetscShmCommLocalToGlobal()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/utils/mpishm.c.html#PetscShmCommGetMpiShmComm">src/sys/utils/mpishm.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/utils/mpishm.c)


[Index of all Sys routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
