PetscViewerASCIIGetStdout#

Creates a PETSCVIEWERASCII PetscViewer shared by all processes in a communicator. Error returning version of PETSC_VIEWER_STDOUT_()

Synopsis#

#include "petscviewer.h" 
PetscErrorCode PetscViewerASCIIGetStdout(MPI_Comm comm, PetscViewer *viewer)

Collective

Input Parameter#

Output Parameter#

  • viewer - the viewer

Note#

This object is destroyed in PetscFinalize(), PetscViewerDestroy() should never be called on it

Developer Note#

This should be used in all PETSc source code instead of PETSC_VIEWER_STDOUT_() since it allows error checking

See Also#

Viewers: Looking at PETSc Objects, PETSC_VIEWER_DRAW_(), PetscViewerASCIIOpen(), PETSC_VIEWER_STDERR_, PETSC_VIEWER_STDOUT_WORLD, PETSC_VIEWER_STDOUT_SELF

Level#

beginner

Location#

src/sys/classes/viewer/impls/ascii/filev.c

Examples#

src/ts/tutorials/ex14.c
src/snes/tutorials/ex6.c


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