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.

PRINT *, 'should be 1', ISDEALLOCATE (/ALL/)DECODE § 77The 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.SyntaxDECODE (c, f, b [ ,IOSTAT= ios ] [, ERR= errs]) [ list ]cfbioserrsis an integer expression specifying the number of bytes involved in translation.is the format-specifier.is a scalar or array reference for the buffer area containing formatted data(characters).is an integer scalar memory reference which is the input/output statusspecifier: if this is specified ios becomes defined with zero if no errorcondition exists or a positive integer when there is an error condition.an error specifier which takes the form of a statement label of an executablestatement in the same program unit. If an error condition occurs executioncontinues with the statement specified by errs.list is a list of input items.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 chFortran Statements 73

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

Saved successfully!

Ooh no, something went wrong!