Skip to main content
Ctrl+K
PETSc v3.26.0-2-g3c5cfaeaff0b documentation - Home
  • Overview
  • Install
  • Tutorials
  • User-Guide
  • C/Fortran API
  • petsc4py API
  • FAQ
  • Community
  • Developers
  • Misc.
  • GitLab
  • Overview
  • Install
  • Tutorials
  • User-Guide
  • C/Fortran API
  • petsc4py API
  • FAQ
  • Community
  • Developers
  • Misc.
  • GitLab
  • PETSC_VIEWER_STDOUT_

PETSC_VIEWER_STDOUT_#

Creates a PETSCVIEWERASCII PetscViewer shared by all MPI processes in a communicator.

Synopsis#

#include "petscviewer.h"   
PetscViewer PETSC_VIEWER_STDOUT_(MPI_Comm comm)

Collective

Input Parameter#

  • comm - the MPI communicator to share the PetscViewer

Notes#

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

Unlike almost all other PETSc routines, this does not return an error code. Usually used in the form

  XXXView(XXX object, PETSC_VIEWER_STDOUT_(comm));

See Also#

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

Level#

beginner

Location#

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

Examples#

src/dm/field/tutorials/ex1.c
src/ksp/ksp/tutorials/ex73.c
src/dm/dt/tests/ex16.c
src/dm/dt/tests/ex7.c
src/dm/impls/plex/tests/ex1.c
src/dm/impls/plex/tests/ex103.c
src/dm/impls/plex/tests/ex11.c
src/dm/impls/plex/tests/ex18.c
src/dm/impls/plex/tests/ex21.c
src/dm/impls/plex/tests/ex56.c


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

On this page
  • Synopsis
  • Input Parameter
  • Notes
  • See Also
  • Level
  • Location
  • Examples
Edit on GitLab
Show Source

© Copyright 1991-2026, UChicago Argonne, LLC and the PETSc Development Team.

Created using Sphinx 7.3.7.

Built with the PyData Sphinx Theme 0.15.1.

Last updated on 2026-09-28T23:19:25-0500 (v3.26.0-2-g3c5cfaeaff0b).