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.

argumentis a symbolic name, starting with a letter and containing only letters anddigits. An argument can be of type REAL, INTEGER, DOUBLEPRECISION, CHARACTER, LOGICAL, COMPLEX, or BYTE, etc.DescriptionThe statements and names apply only to the function, except for subroutine or function referencesand the names of COMMON blocks. The function must be terminated by an END statement.A function produces a result; this allows a function reference to appear in an expression, where theresult is assumed to replace the actual reference. The symbolic name of the function must appearas a variable in the function, unless the RESULT keyword is used. The value of this variable, onexit from the function, is the result of the function. The function result is undefined if the variablehas not been defined.The type of a FUNCTION refers to the type of its result.Recursion is allowed if the –Mrecursive option is used on the command-line and the RECURSIVEprefix is included in the function definition.94 Chapter 3

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

Saved successfully!

Ooh no, something went wrong!