10.07.2015 Views

PGI Fortran Reference manual - The Portland Group

PGI Fortran Reference manual - The Portland Group

PGI Fortran Reference manual - The Portland Group

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.

<strong>Fortran</strong> StatementsF90Syntax<strong>The</strong> syntax for DOUBLE PRECISION has two forms, a standard <strong>Fortran</strong> 90/95 entity basedform, and the <strong>PGI</strong> extended form. This section describes both syntax forms.DOUBLE PRECISION [, attribute-list ::] entity-listattribute-listis the list of attributes for the double precision variable.entity-listis the list of defined entities.Syntax ExtensionDOUBLE PRECISION name [/clist/] [,name] [/clist/]...nameis the symbolic name of a variable, array, or an array declarator (see the DIMENSIONstatement for an explanation of array declarators).clistis a list of constants that initialize the data, as in a DATA statement.DescriptionType declaration statements may be used to dimension arrays explicitly in the same way as theDIMENSION statement. Type declaration statements must not be labeled. Note: <strong>The</strong> data typeof a symbol may be explicitly declared only once. It is established by type declaration statement,IMPLICIT statement or by predefined typing rules. Explicit declaration of a type overrides anyimplicit declaration. An IMPLICIT statement overrides predefined typing rules.<strong>The</strong> default size of a DOUBLE PRECISION variable is 8 bytes, with or without the -r8 option.ExampleDOUBLE PRECISION PLONG3.9. ENCODE<strong>The</strong> ENCODE statement transfers data between variables or arrays in internal storage andtranslates that data from internal to character form, according to format specifiers. Similar resultscan be accomplished using internal files with formatted sequential WRITE statements.F77 extension<strong>PGI</strong> <strong>Fortran</strong> <strong>Reference</strong> Guide 48

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

Saved successfully!

Ooh no, something went wrong!