[petsc-dev] Multiple PetscBags in a single file

Barry Smith bsmith at mcs.anl.gov
Thu Jul 18 16:19:04 CDT 2013


   Glenn,

    This is certainly suppose to work. Please report any bugs

   Barry

On Jul 18, 2013, at 3:46 PM, "Hammond, Glenn" <glenn.hammond at pnnl.gov> wrote:

> 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