:orphan: # PetscShmCommLocalToGlobal Given a local rank in the shared memory communicator returns the global rank ## Synopsis ``` #include "petscsys.h" PetscErrorCode PetscShmCommLocalToGlobal(PetscShmComm pshmcomm, PetscMPIInt lrank, PetscMPIInt *grank) ``` ## Input Parameters - ***pshmcomm -*** the shared memory communicator object - ***lrank -*** the local rank in the shared memory communicator ## Output Parameter - ***grank -*** the global rank in the global communicator where the shared memory communicator is built ## See Also `PetscShmCommGlobalToLocal()`, `PetscShmCommGet()`, `PetscShmCommGetMpiShmComm()` ## Level developer ## Location src/sys/utils/mpishm.c --- [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](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)