PetscBagView#

Views a bag of values as either ASCII text or a binary file

Synopsis#

#include "petscbag.h"   
PetscErrorCode PetscBagView(PetscBag bag, PetscViewer view)

Collective

Input Parameters#

  • bag - the bag of values

  • viewer - location to view the values

Note#

Currently PETSc bags saved in a binary file can only be read back in on a machine with the same binary format.

See Also#

PetscBag, PetscBagSetName(), PetscBagDestroy(), PetscBagLoad(), PetscBagGetData() PetscBagRegisterReal(), PetscBagRegisterInt(), PetscBagRegisterBool(), PetscBagRegisterScalar(), PetscBagRegisterEnum() PetscBagSetFromOptions(), PetscBagCreate(), PetscBagGetName()

Level#

beginner

Location#

src/sys/classes/bag/bag.c

Examples#

src/dm/tutorials/ex7.c
src/snes/tutorials/ex17.c
src/snes/tutorials/ex62.c
src/sys/tutorials/ex5.c
src/sys/tutorials/ex5f90.F90
src/ts/tutorials/ex53.c


Edit on GitLab

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