subroutine mpi_pixelizationbcast( pixeltype *pixelization, int root, int myid, MPI_Comm comm)
Purpose:
It broadcasts the pixelization structure from the processor root to all procs
of the communicator comm. Prior to the call the pixelization structure should be only allocated
on the proc root. As a result of the call it is allocated and duplicated on all the procs.
It has to be called by all procs. Blocking.
Parameter description:
input:
- pixelization-- [pixeltype*], an S2HAT structure containing the info about the pixelization;
- root-- [int], defines a proc root on which the non-distributed data are initially stored;
- myid-- [int], proc id (0,...,numprocs-1);
- comm-- [int], an mpi communicator for the numprocs procs.
All the input, but pixelization needs to be defined on all procs. pixelization needs to be allocated and
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;
|