next up previous contents
Next: Aligning to Dummy Arguments Up: HPF and Procedures Previous: Templates and Modules

 

Interfaces

It is a very good idea to include interfaces for all external procedures. These interfaces should obviously contain all the usual Fortran 90 information (especially the INTENT) but, in addition, should contain all relevant mapping information. Specifically they should contain:

For example,

    INTERFACE
     SUBROUTINE Soobie(A,B,Res)
      USE Global_Mapping_Info
      REAL, DIMENSION(:,:), INTENT(IN) :: A, B
      REAL, DIMENSION(:,:), INTENT(OUT) :: Res
!HPF$ DISTRIBUTE (BLOCK,BLOCK) ONTO P :: A, B, Res
     END SUBROUTINE Soobie
    END INTERFACE

If assumed-shape arrays are being used, interfaces will be mandatory anyway.

Return to corresponding overview page gif


next up previous contents
Next: Aligning to Dummy Arguments Up: HPF and Procedures Previous: Templates and Modules

©University of Liverpool, 1997
Wed May 28 20:20:27 BST 1997
Not for commercial use.