<div class="gmail_quote">On Thu, Jan 5, 2012 at 18:17, Barry Smith <span dir="ltr">&lt;<a href="mailto:bsmith@mcs.anl.gov" target="_blank">bsmith@mcs.anl.gov</a>&gt;</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>
&gt; On Thu, Jan 5, 2012 at 09:36, Alexander Grayver &lt;<a href="mailto:agrayver@gfz-potsdam.de" target="_blank">agrayver@gfz-potsdam.de</a>&gt; wrote:<br>
&gt; Maybe this should be noted in the documentation?<br>
&gt;<br>
&gt; Yes, I think the old file should be closed (if it exists), but I&#39;ll wait for comment.<br>
<br>
</div></div>   I never thought about the case where someone called PetscViewerFileSetName() twice. I&#39;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>