Skip to main content
Ctrl+K
PETSc v3.23.2-184-g2165746541c6 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
  • PetscBagSetF...

PetscBagSetFromOptions#

Allows setting entries to a PetscBag using the options database

Synopsis#

#include "petscbag.h"   
PetscErrorCode PetscBagSetFromOptions(PetscBag bag)

Collective

Input Parameter#

  • bag - the bag of values

Note#

The options database keys for the entries are of the form -[bagprefix]_name value

See Also#

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

Level#

beginner

Location#

src/sys/classes/bag/bag.c

Examples#

src/ts/tutorials/ex53.c
src/sys/tutorials/ex5f90.F90
src/snes/tutorials/ex69.c
src/snes/tutorials/ex17.c
src/snes/tutorials/ex62.c
src/snes/tutorials/ex27.c
src/snes/tutorials/ex71.c
src/snes/tutorials/ex34.c
src/sys/tutorials/ex5.c


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

On this page
  • Synopsis
  • Input Parameter
  • Note
  • 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-19T03:46:19-0500 (v3.23.2-184-g2165746541c6).