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.

Input and Output‣ Complex constants are contained within parentheses with the real and imaginary partsseparated by a comma.‣ Character constants are not delimited by apostrophes and have each internal apostrophe (ifany are present) represented externally by one apostrophe.‣ Each output record begins with a blank character to provide carriage control when the recordis printed.‣ A typeless value output with list-directed I/O is output in hexadecimal form by default. <strong>The</strong>reis no other octal or hexadecimal capability with list-directed I/O.5.7.3. Commas in External FieldUse of the comma in an external field eliminates the need to "count spaces" to have data matchformat edit descriptors. <strong>The</strong> use of a comma to terminate an input field and thus avoid paddingthe field is fully supported.5.7.4. Character Encoding FormatUsers can specify input/output encoding using the encoding= specifier on the OPENstatement. Further, the use of this specifier with the INQUIRE statement returns the encoding ofthe file:UTF-8 specifies the file is connected for UTF-8 I/O or that the processor can detect thisformat in some way.UNKNOWN specifies the processor cannot detect the format.A processor-dependent value indicates the file is in another known format, such asUTF-16LE.5.8. Namelist <strong>Group</strong>s<strong>The</strong> NAMELIST statement allows for the definition of namelist groups. A namelist group allowsfor a special type of formatted input/output, where data is transferred between a named group ofdata items defined in a NAMELIST statement and one or more records in a file.<strong>The</strong> general form of a namelist statement is:NAMELIST /group-name/ namelist [[,] /group-name/ namelist ]...where:group-nameis the name of the namelist group.namelistis the list of variables in the namelist group.5.8.1. Namelist InputNamelist input is accomplished using a READ statement by specifying a namelist group as theinput item. <strong>The</strong> following statement shows the format:READ ([unit=] u, [NML=] namelist-group [,control-information])One or more records are processed which define the input for items in the namelist group.<strong>PGI</strong> <strong>Fortran</strong> <strong>Reference</strong> Guide 86

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

Saved successfully!

Ooh no, something went wrong!