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.

Commas may be used to separate the input values. If there are consecutive commas, or if the firstnon-blank character of a record is a comma, the input value is a null value. Input values may alsobe repeated.In the following example of list-directed formatting, assume thatA= -1.5K= 125and all other variables are undefined. When the statement below reads in the list from the inputfile:READ * I, J, X, Y, Z, A, C, Kwhere the file contains the following record:10,-14,25.2,-76,313,,29/The variables are assigned the following values by the list-directed input/output mechanism:I=10J=-14X=25.2Y=-76.0Z=313.0A=-1.5C=29K=125.Note that the value for A does not change because the input record is null (consecutive commas).No input is read for K, so it assumes null and K retains its previous value (the / terminates theinput).5.7.2 List-directed outputList directed input/output is an abbreviated form of formatted input/output that does not require theuse of a format specification. Depending on the type of the data item or data items in the iolist,data is transferred to or from the file, using a default, and not necessarily accurate formatspecification. The data type of each item appearing in the iolist is formatted according to the rulesin the following table:Table 5-4: Default List Directed Output FormattingData TypeBYTEINTEGER*2I5I7Default FormattingFortran Intrinsics 169

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

Saved successfully!

Ooh no, something went wrong!