On 10/25/06, <b class="gmail_sendername">Yixun Liu</b> <<a href="mailto:yxliu@fudan.edu.cn">yxliu@fudan.edu.cn</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff">
<div><font face="Bookman Old Style">Hi,</font></div>
<div><font face="Bookman Old Style"></font> </div>
<div><font face="Bookman Old Style">Can I think that if I set -np 100, but only
have 2 actually, the size will be 100?</font></div></div></blockquote><div><br>Yes. This counts processes, not processors.<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff"><div><font face="Bookman Old Style">Another question,</font><font face="Bookman Old Style">I run the progarm from VC++6.0 instead of
command line. How to make the program run on 2 processors?</font></div></div></blockquote><div><br>You use the mpirun for the MPI you are using. I think you should get a book on<br>MPI. I recommend the one by Gropp, et. al. It is had to use PETSc without these
<br>basic MPI notions, such as communicator, process, etc.<br><br> Matt<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div bgcolor="#ffffff">
<div><font face="Bookman Old Style">Best,</font></div><span class="sg">
<div><font face="Bookman Old Style"></font> </div>
<div><font face="Bookman Old Style">Yixun</font></div></span><div><span class="e" id="q_10e8269c4a0e3427_2">
<blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
<div>----- Original Message ----- </div>
<div style="background: rgb(228, 228, 228) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"><b>From:</b>
<a title="knepley@gmail.com" href="mailto:knepley@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Matthew Knepley</a>
</div>
<div><b>To:</b> <a title="petsc-users@mcs.anl.gov" href="mailto:petsc-users@mcs.anl.gov" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">petsc-users@mcs.anl.gov</a> </div>
<div><b>Sent:</b> Thursday, October 26, 2006 9:47
AM</div>
<div><b>Subject:</b> Re: about
MPI_Comm_size(PETSC_COMM_WORLD,&size)</div>
<div><br></div>On 10/25/06, <b class="gmail_sendername">Yixun Liu</b> <<a href="mailto:yxliu@fudan.edu.cn" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">yxliu@fudan.edu.cn</a>> wrote:
<div><span class="gmail_quote"></span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff">
<div><font face="Bookman Old Style">Hi,</font></div>
<div><font face="Bookman Old Style"></font> </div>
<div><font face="Bookman Old Style">My computer is a standare dual
processors PC of Dell corp., but after calling ierr =
PI_Comm_size(PETSC_COMM_WORLD,&size), I find the size is one. Is it
correct?</font></div></div></blockquote>
<div><br>MPI only knows what mpiruns tells it. You ran the exampe with -np 1.
If you use -np 2, then it will have size 2.<br><br> Matt<br></div><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff">
<div><font face="Bookman Old Style">Best,</font></div>
<div><font face="Bookman Old Style"></font> </div>
<div><font face="Bookman Old Style">Yixun</font></div></div></blockquote></div>--
<br>"Failure has a thousand explanations. Success doesn't need one" -- Sir
Alec Guiness </blockquote></span></div></div>
</blockquote></div><br><br clear="all"><br>-- <br>"Failure has a thousand explanations. Success doesn't need one" -- Sir Alec Guiness