# PetscObjectListFind
givn a name, find the matching object 
## Synopsis
```
PetscErrorCode PetscObjectListFind(PetscObjectList fl, const char name[], PetscObject *obj)
```

## Input Parameters

- ***fl   -*** pointer to list
- ***name -*** name string



## Output Parameters

- ***obj -*** the PETSc object





## Notes
The name must have been registered with the `PetscObjectListAdd()` before calling this routine.

The reference count of the object is not increased


## See Also
 `PetscObjectListDestroy()`, `PetscObjectListAdd()`, `PetscObjectListDuplicate()`, `PetscObjectListReverseFind()`, `PetscObjectListDuplicate()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/objects/olist.c.html#PetscObjectListFind">src/sys/objects/olist.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/objects/olist.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)  
