s/MPI_LONG/MPI_INT/g because shmem_world_rank is an integer