KSPViewFromOptions#

View (print) a KSP object based on values in the options database. Also views the PC and Mat contained by the KSP with PCView() and MatView().

Synopsis#

#include "petscksp.h" 
PetscErrorCode KSPViewFromOptions(KSP A, PetscObject obj, const char name[])

Collective

Input Parameters#

  • A - Krylov solver context

  • obj - optional object that provides the options prefix used to query the options database, pass NULL to use the options prefix of A

  • name - 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#

KSP: Linear System Solvers, KSP, KSPView(), PetscObjectViewFromOptions(), KSPCreate(), PetscOptionsCreateViewer()

Level#

intermediate

Location#

src/ksp/ksp/interface/itcreate.c


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