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...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Syntax ExtensionnREAL [*n] name [*n] [dimensions] [/clist/] [, name] [*n][dimensions][/clist/]...nameclistis an optional size specification.is 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.DescriptionThe REAL type declaration statements may be used to dimension arrays explicitly in the sameway as the DIMENSION statement. Type declaration 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.The default size of a REAL variable is 4 bytes. With the -Mr8 option, the default size of an REALvariable is 8 bytes.ExampleREAL KNOTS§RECORD § 77The RECORD statement defines a user-defined aggregate data item.SyntaxRECORD /structure_name/record_namelist[,/structure_name/record_namelist]...[,/structure_name/record_namelist]END RECORDstructure_name is the name of a previously declared structure.record_namelist is a list of one or more variable or array names separated by commas.Fortran Statements 127

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

Saved successfully!

Ooh no, something went wrong!