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.

• Every item whose value is to be transferred must be defined.ExampleREAD(2,110) I,J,K110 FORMAT(I2, I4, I3)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:real sumsum = 4h()accept sumand is roughly equivalent tocharacter*4 chch = '()'accept chSee AlsoREAD, PRINTREAL 90The REAL statement establishes the data type of a variable by explicitly attaching the name of avariable to a data type. This overrides the implication of data typing by the initial letter of asymbolic name.SyntaxThe syntax for REAL has two forms, a standard Fortran 90/95 attributed form, and the <strong>PGI</strong>extended form. This section describes both syntax forms.REAL [ ( [ KIND = kind-value ) ] [, attribute-list ::] entity-listREAL permits a KIND specification. Refer to the Fortran 95 Handbook for more syntax details.attribute-listentity-listis the list of attributes for the character variable.is the list of defined entities.126 Chapter 3

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

Saved successfully!

Ooh no, something went wrong!