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.

nameclistis the symbolic name of a variable, array, or an array declarator (see theDIMENSION statement below for an explanation of array declarators).is a list of constants that initialize the data, as in a DATA statement.DescriptionCOMPLEX statements may be used to dimension arrays explicitly in the same way as theDIMENSION statement. COMPLEX statements must not be labeled.Note: The data type of a symbol may be explicitly declared only once. It is established by typedeclaration statement, IMPLICIT statement or by predefined typing rules. Explicit declaration of atype overrides any implicit declaration. An IMPLICIT statement overrides predefined typing rules.ExampleCOMPLEX CURRENTCOMPLEX DIMENSION(8) :: CONV1, FLUX1The default size of a COMPLEX variable is 8 bytes. With the -r8 option, the default size of aCOMPLEX variable is 16 bytes.CONTAINS 90The CONTAINS statement precedes a subprogram, a function or subroutine, that is defined insidea main program, external subprogram, or module subprogram (internal subprogram). TheCONTAINS statement is a flag indicating the presence of a subroutine or function definition. Aninternal subprogram defines a scope for the internal subprogram's labels and names. Scoping isdefined by use and host scoping rules within scoping units. Scoping units have the followingprecedence for names:Syntax• A derived-type definition.• A procedure interface body.• A program unit or a subprogram, excluding contained subprograms.SUBROUTINE XINTEGER H, I...CONTAINSSUBROUTINE YINTEGER IFortran Statements 69

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

Saved successfully!

Ooh no, something went wrong!