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...

PetscViewerBinarySetSkipHeader#

do not write a header with size information on output, just raw data

Synopsis#

PetscErrorCode PetscViewerBinarySetSkipHeader(PetscViewer viewer, PetscBool skip)

Not Collective

Input Parameters#

  • viewer - PetscViewer context, obtained from PetscViewerBinaryOpen()

  • skip - PETSC_TRUE means do not write header

Options Database Key#

  • -viewer_binary_skip_header (true|false) - true means do not write header

Notes#

This must be called after PetscViewerSetType()

If this option is selected, the output file cannot be read with the XXXLoad() such as VecLoad()

See Also#

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

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/mat/tests/ex16.c
src/vec/is/tests/ex2.c
src/vec/is/tests/ex8.c
src/vec/vec/tests/ex46.c

Implementations#

PetscViewerBinarySetSkipHeader_Binary() in src/sys/classes/viewer/impls/binary/binv.c
PetscViewerBinarySetSkipHeader_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 Parameters
  • Options Database Key
  • 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).