[petsc-users] hdf5 and FILE_MODE_APPEND

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


At this point, I can't since the first time the viewer is created via
 PETSC_COMM_WORLD and the second time, PETSC_COMM_SELF.
(I am not even 100% sure if that could cause any troubles with the hdf5
file?)

Mohamad


On Fri, Jan 20, 2012 at 1:27 PM, Matthew Knepley <knepley at gmail.com> wrote:

> 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/0294acbf/attachment.htm>


More information about the petsc-users mailing list