Next: mpi_scanbcast    Up: Communication routines


mpi_pixelizationbcast

subroutine mpi_pixelizationbcast( pixelization, root, myid, comm)

Purpose:

It allocates the structure pixelization on all procs but root and subsequently broadcasts its content from root to all procs of the communicator comm.
It has to be called by all procs. Blocking.

Parameter description:

input:
pixelization-- [pixeltype], an S2HAT structure containing the info about the pixelization;

root-- [integer(4b)], defines a proc root on which the non-distributed data are initially stored;

myid-- [integer(4b)], proc id (0,...,numprocs-1);

comm-- [integer(4b)], an mpi communicator for the numprocs procs.
All the input, but pixelization needs to be defined on all procs. pixelization needs to be defined only on the proc root.

output:

pixelization-- [pixeltype], an S2HAT structure containing the info about the pixelization available on all procs of the communicator comm;


Next: mpi_scanbcast    Up: Communication routines

radek stompor 2007-09-15