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.

Table 2-3: Data Type ExtensionsType Meaning SizeLOGICAL*1 Small LOGICAL 1 byteLOGICAL*2 Short LOGICAL 2 bytesLOGICAL*4 LOGICAL 4 bytesLOGICAL*8 LOGICAL 8 bytesBYTE Small INTEGER 1 byteINTEGER*1 Same as BYTE 1 byteINTEGER*2 Short INTEGER 2 bytesINTEGER*4 INTEGER 4 bytesINTEGER*8 INTEGER 8 bytesREAL*4 REAL 4 bytesREAL*8 DOUBLE PRECISION 8 bytesCOMPLEX*8 COMPLEX 8 bytesCOMPLEX*16 DOUBLE COMPLEX 16 bytesThe BYTE type is treated as a signed one-byte integer and is equivalent to LOGICAL*1.Assignment of a value too big for the data type to which it is assigned is an undefined operation.A specifier is allowed after a CHARACTER function name even if the CHARACTER type wordhas a specifier.For example:CHARACTER*4 FUNCTION C*8 (VAR1)The function size specification C*8 overrides the CHARACTER*4 specification. Logical dataitems can be used with any operation where a similar sized integer data item is permissible andvice versa. The logical data item is treated as an integer or the integer data item is treated as alogical of the same size and no type conversion is performed.Floating point data items of type REAL or DOUBLE PRECISION may be used as arraysubscripts, in computed GOTOs, in array bounds and in alternate returns. The floating point dataitem is converted to an integer.Fortran Data Types 33

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

Saved successfully!

Ooh no, something went wrong!