PetscFOpen with mode "a+"

Matthew Knepley knepley at
Wed Dec 31 10:54:32 CST 2008

You use a ViewerCreate() and then

to set append, and then FileSetName() to open the file.


On Wed, Dec 31, 2008 at 10:24 AM, (Rebecca) Xuefei YUAN <xy2102 at
> wrote:

> Hi,All,
> I tried to use PetscFOpen to write the numerical result to a file, and I
> would like to use the mode "a+" to add my result to the existing content in
> my file. However, whenever the new result comes out, it will overwrite the
> existing content in the file. Is there any problem here?
> Thanks a lot!
> Rebecca

What most experimenters take for granted before they begin their experiments
is infinitely more interesting than any results to which their experiments
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the petsc-users mailing list