MPI forum similar to PETSc for MPI problems?

Barry Smith bsmith at mcs.anl.gov
Fri Jan 19 20:39:43 CST 2007



On Sat, 20 Jan 2007, Ben Tay wrote:

> Hi,
> 
> I've encountered some MPI programming problems. Does anyone know of a
> mailing list sort of discussion forum similar to this PETSc one which deals
> with MPI?

  I don't know. Open MPI has a users list, maybe that is appropriate
http://www.open-mpi.org/community/lists/users/

> 
> Btw, my question is as follow, it will be great if someone can help too ;-)
> 
> It's in fortran but I guess it should be similar in C. Put it simply, how do
> I broadcast part of a derived type variable to other processors ie
> 
> type particle
> 
> real x,y,z
> 
> integer number
> 
> end type particle
> 
> type(particle) part(10,10)
> 
> So I want to broadcast part(:,:)%x to other processors. How can I do that? I
> tried to use:
> 
> call MPI_BCAST(part(i,j)%x, 1, MPI_Real,1, MPI_COMM_WORLD, ierr) but it
> can't work.

  What happens? The value on the other processes is not changed to what it 
should be?

> 
> Thank you very much
> 




More information about the petsc-users mailing list