[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
MPI forum similar to PETSc for MPI problems?
- To: petsc-users@xxxxxxxxxxx
- Subject: MPI forum similar to PETSc for MPI problems?
- From: "Ben Tay" <zonexo@xxxxxxxxx>
- Date: Sat, 20 Jan 2007 09:56:38 +0800
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=XqUTfYliuh4HLfKkAccUam9cNIze9akMCH3npgClrNe5rMaoavN7xN3uWk68rtQV4e4tVFkQN2yoNhcCUJ6XDWTj7Jzm67oRqhvpl+w4EMWWDRzW7MIGoFe3olqoJIgQrrdziQe39VXpfkp8V+Z8L/xIvMqS6oe7sYNDDX5aT+E=
- Reply-to: petsc-users@xxxxxxxxxxx
- Sender: owner-petsc-users@xxxxxxxxxxx
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?
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.
Thank you very much