12.07.2015 Views

PGI Fortran - Servidor WWW del Cluster Ladon-Hidra

PGI Fortran - Servidor WWW del Cluster Ladon-Hidra

PGI Fortran - Servidor WWW del Cluster Ladon-Hidra

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

INTEGER, INTENT(OUT)::I1I1=R1END SUBROUTINE IN_OUTINTERFACE 90The INTERFACE statement block makes an implicit procedure an explicit procedure where thedummy parameters and procedure type are known to the calling module. This statement is alsoused to overload a procedure name.SyntaxINTERFACE [generic-spec][interface-body]...[MODULE PROCEDURE procedure-name-list]...END INTERFACEwhere generic-spec is one of the following:generic-nameOPERATOR (defined operator)ASSIGNMENT (=)and the interface body specifies the interface for a function or a subroutine:function-statement[specification-part]END FUNCTION [function name]subroutine-statement[specification-part]END FUNCTION [subroutine name]See AlsoEND INTERFACEExampleINTERFACESUBROUTINE IN_OUT(R1,I1)REAL, INTENT (IN)::R1INTEGER, INTENT(OUT)::I1END SUBROUTINE IN_OUTEND INTEFACE106 Chapter 3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!