: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 src/vec/is/sf/interface/sf.c --- [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)