typedef struct _n_PetscBag* PetscBag;
     typedef struct {
        PetscInt     height;
        PetscScalar  root;
        PetscReal    byebye;
     } MyParameters;
     PetscBag     bag;
     MyParameters *params;
     ierr = PetscBagCreate(PETSC_COMM_WORLD,sizeof(MyParameters),&bag);
     ierr = PetscBagGetData(bag,(void **)¶ms);
     ierr = PetscBagSetName(bag,"MyParameters");
     ierr = PetscBagRegisterInt(bag,¶ms.height,22,"height","Height of the water tower");
Level:beginner
Location:src/sys/classes/bag/../../../../include/petscbag.h
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages