[petsc-dev] Multiple PetscBags in a single file

Hammond, Glenn glenn.hammond at pnnl.gov
Thu Jul 18 15:46:12 CDT 2013


For the purposes of checkpoint/restart, can one write multiple PetscBags (mingled with Vecs) to a single binary file and read them in the same order?  We want to split up the writing/reading of checkpoint files by process model and thus, create a separate PetscBag for each process model.  E.g.

Order as written in file:

Flow Bag
Flow Solution Vec
Flow State Variable 1 Vec
Flow State Variable 2 Vec
...
Flow State Variable N Vec
Transport Bag
Transport Solution Vec
Transport State Variable 1 Vec
Transport State Variable 2 Vec
...
Transport State Variable N Vec


Thanks,

Glenn



More information about the petsc-dev mailing list