On Fri, Jan 20, 2012 at 3:22 PM, Mohamad M. Nasr-Azadani <mmnasr at gmail.com>wrote:
> Thanks Matt, > So, this cannot be done this way, i.e. generate an hdf5 file at one > instance and write a field data, close it then add another field data at > later instance to the same file? Can't you just open up the file and write something with a different name? Matt > On Fri, Jan 20, 2012 at 1:19 PM, Matthew Knepley <knepley at gmail.com>wrote: > >> On Fri, Jan 20, 2012 at 3:15 PM, Mohamad M. Nasr-Azadani < >> mmnasr at gmail.com> wrote: >> >>> Hi guys, >>> >>> Does *PetscViewerHDF5Open()*work with *FILE_MODE_APPEND*? >>> >> >> No, but HDF5 does not work like that. >> >> Matt >> >> >>> This is the error I get when I first open the file, write some data to >>> it using VecView(), close it and then again reopen (with append mode) it to >>> add data to the end of it. >>> >>> [0]PETSC ERROR: Operation done in wrong order! >>> [0]PETSC ERROR: Must call PetscViewerFileSetMode() before >>> PetscViewerFileSetName()! >>> >>> Thanks, >>> Mohamad >>> >>> >> >> >> -- >> What most experimenters take for granted before they begin their >> experiments is infinitely more interesting than any results to which their >> experiments lead. >> -- Norbert Wiener >> > > -- What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead. -- Norbert Wiener -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120120/e91bf602/attachment.htm>
