:orphan: # PetscDeviceContextViewFromOptions View a `PetscDeviceContext` from options ## Synopsis ``` #include PetscErrorCode PetscDeviceContextViewFromOptions(PetscDeviceContext dctx, PetscObject obj, const char name[]) ``` ## Input Parameters - ***dctx -*** The `PetscDeviceContext` to view - ***obj -*** Optional `PetscObject` to associate (may be `NULL`) - ***name -*** The command line option ## See Also `PetscDeviceContextView()`, `PetscObjectViewFromOptions()`, `PetscDeviceContextCreate()` ## Level beginner ## Location src/sys/objects/device/interface/dcontext.cxx --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/objects/device/interface/dcontext.cxx) [Index of all Sys routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)