Danyang Su <danyang...@gmail.com> writes:

> I made a second check on initialization of PETSc, and found that the 
> initialization does not take effect. The codes are as follows.
>
>          call PetscInitialize(Petsc_Null_Character,ierrcode)
>          call MPI_Comm_rank(Petsc_Comm_World,rank,ierrcode)
>          call MPI_Comm_size(Petsc_Comm_World,nprcs,ierrcode)
>
> The value of rank and nprcs are always 0 and 1, respectively, whatever 
> how many processors are used in running the program.

The most common reason for this is that you have more than one MPI
implementation on your system and they are getting mixed up.

Attachment: pgpU97SWmiOFs.pgp
Description: PGP signature

Reply via email to