:orphan:
# PetscSFViewFromOptions
View a `PetscSF` based on arguments in the options database 
## Synopsis
```
#include "petscsf.h" 
PetscErrorCode PetscSFViewFromOptions(PetscSF A, PetscObject obj, const char name[])
```
Collective


## Input Parameters

- ***A -*** the star forest
- ***obj -*** Optional object that provides the prefix for the option names
- ***name -*** command line option





## Note
See `PetscObjectViewFromOptions()` for possible `PetscViewer` and `PetscViewerFormat`


## See Also
 `PetscSF`, `PetscSFView`, `PetscObjectViewFromOptions()`, `PetscSFCreate()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/is/sf/interface/sf.c.html#PetscSFViewFromOptions">src/vec/is/sf/interface/sf.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/is/sf/interface/sf.c)


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