next up previous contents
Next: psb_sum Global Up: Parallel environment routines Previous: psb_abort Abort   Contents

psb_bcast -- Broadcast data

call psb_bcast(icontxt, dat, root)

This subroutine implements a broadcast operation based on the underlying communication library.

Type:
Synchronous.
On Entry
icontxt
the communication context identifying the virtual parallel machine.
Scope: global.
Type: required.
Intent: in.
Specified as: an integer variable.
dat
On the root process, the data to be broadcast.
Scope: global.
Type: required.
Intent: inout.
Specified as: an integer, real or complex variable, which may be a scalar, or a rank 1 or 2 array, or a character or logical variable, which may be a scalar or rank 1 array. Type, kind, rank and size must agree on all processes.
root
Root process holding data to be broadcast.
Scope: global.
Type: optional.
Intent: in.
Specified as: an integer value $0<= root <= np-1$, default 0

On Return
dat
On processes other than root, the data to be broadcast.
Scope: global.
Type: required.
Intent: inout.
Specified as: an integer, real or complex variable, which may be a scalar, or a rank 1 or 2 array, or a character or logical scalar. Type, kind, rank and size must agree on all processes.


next up previous contents
Next: psb_sum Global Up: Parallel environment routines Previous: psb_abort Abort   Contents