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.

if no list items are specified; in such a case one input record is skipped or an output recordcontaining no characters is written. Unless the edit code or the format list is preceded by a repeatspecification, a format specification is interpreted from left to right. Where a repeat specification isused the appropriate item is repeated the required number of times.DescriptionRefer to Input and Output Formatting for more details on using the FORMAT statement.ExamplesWRITE (6,90) NPAGE90 FORMAT('1PAGE NUMBER ',I2,16X,'SALES REPORT, Cont.')produces:PAGE NUMBER 10SALES REPORT, Cont.The following example shows use of the tabulation specifier T:PRINT 2525 FORMAT (T41,'COLUMN 2',T21,'COLUMN 1')produces:COLUMN 1 COLUMN 2DIMENSION A(6)DO 10 I = 1,610 A(I) = 25.TYPE 100,A100 FORMAT(' ',F8.2,2PF8.2,F8.2) ! ' 'C! gives single spacingproduces:25.00 2500.00 2500.002500.00 2500.00 2500.00Note that the effect of the scale factor continues until another scale factor is used.92 Chapter 3

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

Saved successfully!

Ooh no, something went wrong!