<div class="gmail_quote">On Thu, Jan 5, 2012 at 18:17, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov" target="_blank">bsmith@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div>On Jan 5, 2012, at 9:40 AM, Jed Brown wrote:<br>
<br>
> On Thu, Jan 5, 2012 at 09:36, Alexander Grayver <<a href="mailto:agrayver@gfz-potsdam.de" target="_blank">agrayver@gfz-potsdam.de</a>> wrote:<br>
> Maybe this should be noted in the documentation?<br>
><br>
> Yes, I think the old file should be closed (if it exists), but I'll wait for comment.<br>
<br>
</div></div> I never thought about the case where someone called PetscViewerFileSetName() twice. I'm surprised that it works at all.<br>
<br>
Yes, it should (IMHO) be changed to close the old file if used twice.</blockquote></div><br>
<div>It works this way now.</div><div><br></div><div><a href="http://petsc.cs.iit.edu/petsc/petsc-dev/rev/3a98e6a0994d">http://petsc.cs.iit.edu/petsc/petsc-dev/rev/3a98e6a0994d</a></div>