about MPI_Comm_size(PETSC_COMM_WORLD,&size)

Yixun Liu yxliu at fudan.edu.cn
Thu Oct 26 00:54:58 CDT 2006


Hi,

I tried what you said and mpiexec - n 2 localonly is ok. Do I need to reinstall the MPICH2?

Best,

Yixun
----- Original Message ----- 
From: "Satish Balay" <balay at mcs.anl.gov>
To: <petsc-users at mcs.anl.gov>
Sent: Thursday, October 26, 2006 1:21 PM
Subject: Re: about MPI_Comm_size(PETSC_COMM_WORLD,&size)


> 
> 
> On Thu, 26 Oct 2006, Yixun Liu wrote:
> 
>> Hi,
>> Can I compiler and link it in VC enviroment and then copy the .exe to a directory. 
> 
> you can just go to the dir which has the executable. [copy is not necessary]
> 
>> Then, at command line run mpiexec -n 2 xxx.exe? 
> 
> yes
> 
>> I try it, but the error is "Credentials for yxliu rejected
>> connecting to dmrc-6700512 Aborting: Unable to connect to
>> dmrc-6700512". I have used wmpiregister to register the accout
>> correctly.
> 
> 
> Sounds like your mpi install is not setup properly. I'm guessing
> you are using mpich2. I don't know enough about this version.
> 
> Can you check if any of the following work?
> executable
> mpiexec -n 1 executable
> mpiexec -n 2 executable
> mpiexec -n 2 -localonly executable
> 
> Satish
>




More information about the petsc-users mailing list