PetscOptionsRestoreViewer#
restore a PetscViewer
obtained from PetscOptionsGetViewer()
or PetscOptionsGetViewers()
Synopsis#
#include "petscviewer.h"
PetscErrorCode PetscOptionsRestoreViewer(PetscViewer *viewer)
Collective
Input Parameter#
viewer - the viewer
Developer Note#
This function exists to handle persistent viewers such as PETSC_VIEWER_STDOUT_SELF
that may be shared between threads where
changing the reference count would not be thread safe.
See Also#
Viewers: Looking at PETSc Objects, PetscOptionsGetViewer()
, PetscOptionsGetReal()
, PetscOptionsHasName()
, PetscOptionsGetString()
,
PetscOptionsGetIntArray()
, PetscOptionsGetRealArray()
, PetscOptionsBool()
PetscOptionsInt()
, PetscOptionsString()
, PetscOptionsReal()
,
PetscOptionsName()
, PetscOptionsBegin()
, PetscOptionsEnd()
, PetscOptionsHeadBegin()
,
PetscOptionsStringArray()
, PetscOptionsRealArray()
, PetscOptionsScalar()
,
PetscOptionsBoolGroupBegin()
, PetscOptionsBoolGroup()
, PetscOptionsBoolGroupEnd()
,
PetscOptionsFList()
, PetscOptionsEList()
, PetscOptionsPushGetViewerOff()
, PetscOptionsPopGetViewerOff()
,
PetscOptionsGetViewerOff()
Level#
intermediate
Location#
Examples#
src/sys/classes/viewer/tutorials/ex2.c
src/ts/tutorials/ex53.c
src/snes/tutorials/ex36.c
src/snes/tutorials/ex56.c
src/snes/tutorials/ex17.c
src/vec/vec/utils/tagger/tutorials/ex1.c
src/snes/tutorials/ex62.c
Index of all Viewer routines
Table of Contents for all manual pages
Index of all manual pages