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.

where the items in iolist are either items permissible in an input/output list or another implied DOlist. The value do-var is an INTEGER, REAL or DOUBLE PRECISION variable and var1, var2and var3 are arithmetic expressions of type INTEGER, REAL or DOUBLE PRECISION.Generally, do-var, var1, var2 and var3 are of type INTEGER. Should iolist occur in an inputstatement, the do-var cannot be used as an item in iolist. If var3 and the preceding comma areomitted, the increment takes the value 1. The list items are specified once for each iteration of theDO loop with the DO-variable being substituted as appropriate.REAL C(6),D(6)DATA OXO,(C(I),I=7,9),TEMP,(D(J),J=1,2)/4*0.0,3*10.0/In the above example OXO, C(7), C(8) and C(9) are set to 0.0 with TEMP, D(1) and D(2)being set to 10.0. In the next example:READ *,A,B,(R(I),I=1,4),Shas the same effect asREAD *,A,B,R(1),R(2),R(3),R(4),S5.5.2 Format SpecificationsFormat requirements may be given either in an explicit FORMAT statement or alternatively, asfields within an input/output statement (as values in character variables, arrays or other characterexpressions within the input/output statement).When a format identifier in a formatted input/output statement is a character array name or othercharacter expression, the leftmost characters must be defined with character data that constitute aformat specification when the statement is executed. A character format specification is enclosedin parentheses. Blanks may precede the left parenthesis. Character data may follow the right-handparenthesis and has no effect on the format specification. When a character array name is used as aformat identifier, the length of the format specification can exceed the length of the first elementof the array; a character array format specification is considered to be an ordered concatenation ofall the array elements. When a character array element is used as a format identifier the lengthmust not exceed that of the element used.The FORMAT statement has the form:FORMAT (list-of-format-requirements)The list of format requirements can be any of the following, separated by commas:Fortran Intrinsics 157

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

Saved successfully!

Ooh no, something went wrong!