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.

ADVANCE=spec spec is a character expression specifying the access method for thewrite. YES indicates advancing formatted sequential data transfer. NOindicates non-advancing formatted sequential data transfer.ERR=ss is an executable statement label for the statement used for processingan error condition.[FMT=]format format is a label of a format statement or a variable containing a formatstring.IOSTAT=ios ios is an integer variable or array element. ios becomes defined with 0if no error occurs, and a positive integer when there is an error.[NML=] namelistnamelist is a namelist groupREC=rniolistrn is a record number to read and must be a positive integer. This isonly used for direct access files.iolist must either be one of the items in an input list or any otherexpression. However a character expression involving concatenation ofan operand of variable length cannot be included in an output list unlessthe operand is the symbolic name of a constant.DescriptionWhen a WRITE statement is executed the following operations are carried out: data is transferredto the standard output device from the items specified in the output list and format specification. *The data are transferred between the specified destinations in the order specified by theinput/output list. Every item whose value is to be transferred must be defined.ExampleWRITE (6,90) NPAGE90 FORMAT('1PAGE NUMBER ',I2,16X,'SALES REPORT, Cont.')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:* If an asterisk (*) is used instead of a format identifier, the list-directed formatting rules apply.Fortran Statements 143

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

Saved successfully!

Ooh no, something went wrong!