subroutine mpi_scanbcast( pixelization, scan, root, myid, comm)
Purpose:
It allocates the structure scan on all procs and subsequently broadcasts its content to all procs
of the communicator comm.
Needs to be called by all procs. Blocking.
Parameter description:
input:
- pixelization-- [pixeltype], an S2HAT structure containing the info about the pixelization;
- scan-- [ scandef], an S2HAT structure containing the info about the sky coverage;
- 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 scan needs to be defined on all procs. scan needs to be defined only on the proc root.
output:
- scan-- [ scandef], an S2HAT structure containing the info about the sky coverage available on each procs of the communicator comm.
|