#include "petscksp.h" PetscErrorCode KSPView(KSP ksp,PetscViewer viewer)Collective on ksp
ksp | - the Krylov space context | |
viewer | - visualization context |
-ksp_view | - print the ksp data structure at the end of a KSPSolve call |
PETSC_VIEWER_STDOUT_SELF | - standard output (default) | |
PETSC_VIEWER_STDOUT_WORLD | - synchronized standard output where only the first processor opens the file. All other processors send their data to the first processor to print. |
The user can open an alternative visualization context with PetscViewerASCIIOpen() - output to a specified file.
In the debugger you can do "call KSPView(ksp,0)" to display the KSP. (The same holds for any PETSc object viewer).