next up previous contents
Next: LOCAL Calling Sequence Up: The LOCAL Model Previous: The LOCAL Model

Conventions for Calling LOCAL Subprograms

The default mapping of scalar dummy arguments, of scalar function results, and of sequential arrays is such that the argument is replicated on each physical processor. These mappings may, optionally, be explicit in the interface (except in the case of sequential arrays, which may not be explicitly mapped), but any other explicit mapping is not HPF conforming. Dummy arguments may not be of explicitly mapped derived types or have explicitly mapped structure components.

As in the case of non-extrinsic subprograms, actual arguments may be mapped in any way; if necessary, they are copied automatically to correctly mapped temporaries before invocation of and after return from the extrinsic procedure.

It should be noted that the conventions for calling local subprograms apply only at the interface between the GLOBAL and LOCAL models. The conventions do not propagate to further subprograms called from within the LOCAL model.