Skip to main content
Ctrl+K
PETSc 3.23.2 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
  • PetscBagSetName

PetscBagSetName#

Sets the name of a bag of values

Synopsis#

#include "petscbag.h"   
PetscErrorCode PetscBagSetName(PetscBag bag, const char name[], const char help[])

Not Collective

Input Parameters#

  • bag - the bag of values

  • name - the name assigned to the bag

  • help - help message for bag

See Also#

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

Level#

intermediate

Location#

src/sys/classes/bag/bag.c

Examples#

src/snes/tutorials/ex69.c
src/snes/tutorials/ex34.c
src/snes/tutorials/ex17.c
src/ts/tutorials/ex53.c
src/snes/tutorials/ex71.c
src/snes/tutorials/ex62.c
src/snes/tutorials/ex27.c
src/snes/tutorials/ex36.c
src/ts/tutorials/ex77.c
src/snes/tutorials/ex76.c


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

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

© Copyright 1991-2025, 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 2025-05-17T04:21:03-0500 (v3.23.2-11-g97501c3b78f0).