Skip to main content
Ctrl+K
PETSc v3.26.1-331-g44efd75427f9 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
  • PetscViewerB...

PetscViewerBinaryGetSkipHeader#

checks whether to write a header with size information on output, or just raw data

Synopsis#

PetscErrorCode PetscViewerBinaryGetSkipHeader(PetscViewer viewer, PetscBool *skip)

Not Collective

Input Parameter#

  • viewer - PetscViewer context, obtained from PetscViewerBinaryOpen()

Output Parameter#

  • skip - PETSC_TRUE means do not write header

Notes#

This must be called after PetscViewerSetType()

Returns PETSC_FALSE for PETSCSOCKETVIEWER, you cannot skip the header for it.

See Also#

Viewers: Looking at PETSc Objects, PETSCVIEWERBINARY, PetscViewerBinaryOpen(), PetscViewerBinaryGetDescriptor(), PetscViewerBinarySkipInfo(), PetscViewerBinarySetSkipHeader()

Level#

advanced

Location#

src/sys/classes/viewer/impls/binary/binv.c

Examples#

src/sys/classes/viewer/tests/ex6.c
src/dm/tutorials/ex15.c
src/vec/vec/tests/ex46.c

Implementations#

PetscViewerBinaryGetSkipHeader_Binary() in src/sys/classes/viewer/impls/binary/binv.c
PetscViewerBinaryGetSkipHeader_Socket() in src/sys/classes/viewer/impls/socket/send.c


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

On this page
  • Synopsis
  • Input Parameter
  • Output Parameter
  • Notes
  • See Also
  • Level
  • Location
  • Examples
  • Implementations
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-11-08T03:39:45-0600 (v3.26.1-331-g44efd75427f9).