<div dir="ltr"><div>Hi Barry,</div><div> </div><div>Thanks for fixing this. The workaround you suggested yesterday works perfectly well for me at this point, and I'll look at this fix in the next release.</div><div> </div>
<div>Randy M.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Nov 26, 2013 at 8:29 PM, 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:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><br>
   I have fixed this in the next branch of PETSc <a href="https://bitbucket.org/petsc/petsc/wiki/Home" target="_blank">https://bitbucket.org/petsc/petsc/wiki/Home</a><br>
<br>
   Because it changes APIs I cannot merge it into the current release (though it doesn’t change APIs for your code).<br>
<br>
    Thanks for reporting the problem,<br>
<div class="im"><br>
   Barry<br>
On Nov 26, 2013, at 3:45 PM, Randall Mackie <<a href="mailto:rlmackie862@gmail.com">rlmackie862@gmail.com</a>> wrote:<br>
<br>
</div><div class="im">> I am trying to print a character string to a file from one or more processors in a communicator. I thought that I could do this using PetscViewerASCIISynchronizedPrintf, but it prints to the screen instead of to the file opened as a viewer. The attached simple program illustrates the issue. If I remove the (if rank == 1) and therefore call PetscViewerASCIISynchronizedPrintf from every process, it works as expected. If called from only 1 process, it prints to the screen. I thought, from the documentation, that it was not collective, but maybe I am not understanding it's usage.<br>

><br>
><br>
> Randy M.<br>
</div>> <test.F90><br>
<br>
</blockquote></div><br></div></div>