Up: Communication routines    Previous: mpi_pixelizationbcast


mpi_scanbcast

subroutine mpi_scanbcast( pixeltype pixelization, scandef *scan, int root, int myid, MPI_Comm comm)

Purpose:

It broadcasts the structure scan from proc root to all procs of the communicator comm. The structure pixelization has to be defined and the same on all the procs prior to the call. The structure scan should be allocated and defined only on the broadcasting proc root and will be allocated and duplicated as the result of the call.
Needs to be called by all procs. Blocking.

Parameter description:

input:
pixelization-- [pixeltype], an S2HAT structure containing the info about the pixelization. It has to be defined and identical on all the procs calling the routine.

scan-- [ scandef*], an S2HAT structure containing the info about the sky coverage, prior to the call it needs to be allocated and defined only on the proc root;

root-- [int], defines a processor on which the scan structure is initially allocated and defined;

myid-- [int], proc id (0,...,numprocs-1);

comm-- [int], an mpi communicator for the numprocs procs.
All the input, but scan needs to be defined on all procs. scan should be allocated and defined only on the proc root.

output:

scan-- [ scandef*], an S2HAT structure containing the info about the sky coverage, which as the result of the call will be defined and available on each procs of the communicator comm.


Up: Communication routines    Previous: mpi_pixelizationbcast

radek stompor 2009-10-15