[petsc-users] hdf5 and FILE_MODE_APPEND

Mohamad M. Nasr-Azadani mmnasr at gmail.com
Fri Jan 20 15:22:43 CST 2012


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?


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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120120/8a583a82/attachment.htm>


More information about the petsc-users mailing list