about MPI_Comm_size(PETSC_COMM_WORLD,&size)

Matthew Knepley knepley at gmail.com
Wed Oct 25 20:47:00 CDT 2006


On 10/25/06, Yixun Liu <yxliu at fudan.edu.cn> wrote:
>
>  Hi,
>
> 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?
>

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.

  Matt

Best,
>
> Yixun
>
-- 
"Failure has a thousand explanations. Success doesn't need one" -- Sir Alec
Guiness
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20061025/45922cd2/attachment.htm>


More information about the petsc-users mailing list