PetscDeviceContextViewFromOptions#

View a PetscDeviceContext from options

Synopsis#

#include <petscdevice.h> 
PetscErrorCode PetscDeviceContextViewFromOptions(PetscDeviceContext dctx, PetscObject obj, const char name[])

Input Parameters#

  • dctx - the PetscDeviceContext to view

  • obj - optional PetscObject to provide the options prefix, pass NULL to use the options prefix of dctx

  • name - the command line option

Options Database Key#

Note#

This checks the options database, creates the viewer on-the-fly, uses it and then destroys it. Hence it should not be called in heavily used routines, rather PetscOptionsCreateViewer() should be used to construct the viewer once which can then be utilized in the heavily used routine.

See Also#

PetscDeviceContextView(), PetscObjectViewFromOptions(), PetscDeviceContextCreate(), PetscOptionsCreateViewer()

Level#

beginner

Location#

src/sys/objects/device/interface/dcontext.cxx


Index of all Device routines
Table of Contents for all manual pages
Index of all manual pages