petsc-3.14.6 2021-03-30
PetscOptionsPopGetViewerOff
reset whether PetscOptionsGetViewer returns a viewer.
Synopsis
#include "petscviewer.h"
PetscErrorCode PetscOptionsPopGetViewerOff(void)
Logically Collective
Notes
Calling XXXViewFromOptions in an inner loop can be very expensive. This can appear, for example, when using
many small subsolves. Call this function to control viewer creation in PetscOptionsGetViewer, thus removing the expensive XXXViewFromOptions calls.
See Also
PetscOptionsGetViewer(), PetscOptionsPushGetViewerOff()
Level
developer
Location
src/sys/classes/viewer/interface/viewreg.c
Index of all Viewer routines
Table of Contents for all manual pages
Index of all manual pages