<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY 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><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><FONT face="Bookman Old Style"></FONT> </DIV>
<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>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 9pt 宋体">----- Original Message ----- </DIV>
<DIV style="BACKGROUND: #e4e4e4; FONT: 9pt 宋体; font-color: black"><B>From:</B>
<A title=knepley@gmail.com href="mailto:knepley@gmail.com">Matthew Knepley</A>
</DIV>
<DIV style="FONT: 9pt 宋体"><B>To:</B> <A title=petsc-users@mcs.anl.gov
href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</A> </DIV>
<DIV style="FONT: 9pt 宋体"><B>Sent:</B> Thursday, October 26, 2006 9:47
AM</DIV>
<DIV style="FONT: 9pt 宋体"><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">yxliu@fudan.edu.cn</A>> wrote:
<DIV><SPAN class=gmail_quote></SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<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="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<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></BODY></HTML>