Bag — PETSc 3.25.4 documentation

Skip to main content
`Ctrl`+`K`

# Bag

`PetscBag` is used to help manage user struct-like data structures in PETSc

## Beginner - Basic usage

PetscBag PetscBagDestroy PetscBagLoad PetscBagRegisterBool PetscBagRegisterBoolArray | PetscBagRegisterEnum PetscBagRegisterInt PetscBagRegisterInt64 PetscBagRegisterIntArray PetscBagRegisterReal | PetscBagRegisterRealArray PetscBagRegisterScalar PetscBagRegisterString PetscBagSetFromOptions PetscBagView

## Intermediate - Setting options for algorithms and data structures

PetscBagCreate PetscBagGetData PetscBagGetName | PetscBagGetNames PetscBagSetName | PetscBagSetOptionsPrefix PetscBagViewFromOptions

## No advanced routines

## Developer - Interfaces rarely needed by applications programmers

PetscBagItem |  |

## Single list of manual pages

PetscBag PetscBagCreate PetscBagDestroy PetscBagGetData PetscBagGetName PetscBagGetNames PetscBagItem PetscBagLoad | PetscBagRegisterBool PetscBagRegisterBoolArray PetscBagRegisterEnum PetscBagRegisterInt PetscBagRegisterInt64 PetscBagRegisterIntArray PetscBagRegisterReal PetscBagRegisterRealArray | PetscBagRegisterScalar PetscBagRegisterString PetscBagSetFromOptions PetscBagSetName PetscBagSetOptionsPrefix PetscBagView PetscBagViewFromOptions