PetscDeviceContextViewFromOptions#
View a PetscDeviceContext from options
Synopsis#
#include <petscdevice.h>
PetscErrorCode PetscDeviceContextViewFromOptions(PetscDeviceContext dctx, PetscObject obj, const char name[])
Input Parameters#
dctx - the
PetscDeviceContextto viewobj - optional
PetscObjectto provide the options prefix, passNULLto use the options prefix ofdctxname - the command line option
Options Database Key#
-name viewer_specification - See
PetscOptionsCreateViewer()for the values ofviewer_specification
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