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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Fortran</strong> StatementsSee AlsoALLOCATE, DEALLOCATE3.5. BYTE<strong>The</strong> BYTE statement establishes the data type of a variable by explicitly attaching the name of avariable to a 1-byte integer. This overrides data typing implied by the initial letter of a symbolicname.F77 extensionSyntaxBYTE 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.DescriptionByte statements may be used to dimension arrays explicitly in the same way as the DIMENSIONstatement. BYTE declaration statements must not be labeled.ExampleBYTE TB3, SEC, STORE (5,5)3.6. DECODE<strong>The</strong> DECODE statement transfers data between variables or arrays in internal storage andtranslates that data from character form to internal form, according to format specifiers. Similarresults can be accomplished using internal files with formatted sequential READ statements.F77 extensionSyntaxDECODE (c, f, b [ ,IOSTAT= ios ] [,ERR= errs]) [ list ]<strong>PGI</strong> <strong>Fortran</strong> <strong>Reference</strong> Guide 45

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

Saved successfully!

Ooh no, something went wrong!