#include "petscsnes.h" PetscErrorCode SNESView(SNES snes,PetscViewer viewer)Collective on SNES
SNES | - the SNES context | |
viewer | - visualization context |
-snes_view | - Calls SNESView() at end of SNESSolve() |
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 SNESView(snes,0)" to display the SNES solver. (The same holds for any PETSc object viewer).