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

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

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

5.7 List-directed formattingList-directed formatting is an abbreviated form of input/output that does not require the use of aformat specification. The type of the data is used to determine how a value is read/written. Onoutput, it will not always be accurate enough for certain ranges of values. The characters in a listdirectedrecord constitute a sequence of values which cannot contain embedded blanks exceptthose permitted within a character string. To use list-directed input/output formatting, specify a *for the list of format requirements. For example, the following example uses list-directed output:READ( 1, * ) VAL1, VAL25.7.1 List-directed inputThe form of the value being input must be acceptable for the type of item in the iolist. Blanks mustnot be used as zeros nor be embedded in constants except in a character constant or within a typecomplex form contained in parentheses.Input List TypeIntegerRealDouble precisionComplexLogicalCharacterTable 5-3: List Directed Input ValuesA numeric input field.FormA numeric input field suitable for F editing with no fractionalpart unless a decimal point is used.Same as for real.An ordered pair of numbers contained within parentheses asshown (real part, imaginary part).A logical field without any slashes or commas.A non-empty character string within apostrophes. Acharacter constant can be continued on as many records asrequired. Blanks, slashes and commas can be used.A null value has no effect on the definition status of the corresponding iolist item. A null valuecannot represent just one part of a complex constant but may represent the entire complexconstant. A slash encountered as a value separator stops the execution of that input statement afterthe assignment of the previous value. If there are further items in the list, they are treated as if theyare null values.168 Chapter 6

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

Saved successfully!

Ooh no, something went wrong!