# PetscLayoutFindOwner
Find the owning rank for a global index 
## Synopsis
```
#include "petscis.h" 
static inline PetscErrorCode PetscLayoutFindOwner(PetscLayout map, PetscInt idx, PetscMPIInt *owner)
```
Not Collective


## Input Parameters

- ***map -*** the layout
- ***idx -*** global index to find the owner of



## Output Parameter

- ***owner -*** the owning rank





## Fortran Note
Not available from Fortran


## See Also
 `PetscLayoutFindOwnerIndex()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/include/petscis.h.html#PetscLayoutFindOwner">include/petscis.h</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/include/petscis.h)


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