On Thu, Jan 5, 2012 at 18:17, Barry Smith <bsmith at mcs.anl.gov> wrote:
> On Jan 5, 2012, at 9:40 AM, Jed Brown wrote: > > > On Thu, Jan 5, 2012 at 09:36, Alexander Grayver <agrayver at gfz-potsdam.de> > wrote: > > Maybe this should be noted in the documentation? > > > > Yes, I think the old file should be closed (if it exists), but I'll wait > for comment. > > I never thought about the case where someone called > PetscViewerFileSetName() twice. I'm surprised that it works at all. > > Yes, it should (IMHO) be changed to close the old file if used twice. It works this way now. http://petsc.cs.iit.edu/petsc/petsc-dev/rev/3a98e6a0994d -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120118/32ccd7d5/attachment.htm>
