#include "petscsys.h" PetscErrorCode PetscShmCommGlobalToLocal(PetscShmComm pshmcomm,PetscMPIInt grank,PetscMPIInt *lrank)
pshmcomm | - the shared memory communicator object | |
grank | - the global rank |
lrank | - the local rank, or MPI_PROC_NULL if it does not exist |
It may be better to rewrite this to map multiple global ranks to local in the same function call