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

Interfaces

Good practise to declare explicit interfaces for procedures containing mapped dummies.

    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

Should always use assumed-shape arrays so interfaces will be mandatory anyway.

For more information, click here gif


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

Adam Marshall ©University of Liverpool, 1996
Fri Dec 6 18:56:08 GMT 1996
Not for commercial use.