On Tue, Dec 13, 2011 at 10:13 AM, Xiangdong Liang <span dir="ltr"><<a href="mailto:xdliang@gmail.com">xdliang@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello everyone,<br>
<br>
I am using PetscPrintf(PETSC_COMM_WORLD,.....) to print out some<br>
information. When I run the program on multiple processors, some of<br>
these calls are printed out multiple times, while other calls are<br>
printed out once. Should it be printed only once if I use<br>
PETSC_COMM_WORLD? Thanks.</blockquote><div><br></div><div>The print is executed only on rank 0 of the communicator provided.</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888"><br>
Xiangdong<br>
</font></span><br>
PS. I am using petsc-dev. My code works fine on real petsc-3.1-p8. I<br>
just switched to complex petsc-dev and see this problem.<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener<br>