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.

Non-character Format-specifier §If a format-specifier is a variable which is neither CHARACTER nor a simple INTEGER variable,the compiler accepts it and treats it as if the contents were character. For example, below sum istreated as a format descriptor:real sumsum = 4h()accept sumand is roughly equivalent tocharacter*4 chch = '()'accept chSee AlsoREAD, PRINTFUNCTION 77The FUNCTION statement introduces a program unit; the statements that follow all apply to thefunction itself and are laid out in the same order as those in a PROGRAM program unit.Syntax[function-prefix] FUNCTION name [*n] ([argument [,argument]...])...END [ FUNCTION [function-name]]function-prefixnameis one of:[type-spec] RECURSIVE[RECURSIVE ] type-specwhere type-spec is a valid type specification. Type will explicitly applya type to the function. If the function is not explicitly typed then thefunction type is taken from the initial letter and is dictated by the usualdefault.is the name of the function and must be unique among all the programunit names in the program. name must not clash with any local,COMMON or PARAMETER names.*n is the optional length of the data type.Fortran Statements 93

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

Saved successfully!

Ooh no, something went wrong!