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.

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, PRINTALLOCATABLE 90The ALLOCATABLE specification statement (attribute) specifies that an array with fixed rank butdeferred shape is available for a future ALLOCATE statement. An ALLOCATE statementallocates space for the allocatable array.SyntaxALLOCATABLE [ :: ] array-name [(deferred-array-spec)][, array-name [(deferred-array-spec)]]...array-namedeferred-array-specis the name of the allocatable array.is a : character.ExampleREAL SCORE(:), NAMES(:,:)REAL, ALLOCATABLE, DIMENSION(:,:,:) :: TESTALLOCATABLE SCORE, NAMESINTEGER, ALLOCATABLE :: REC1(: ,: , :)See AlsoALLOCATE, DEALLOCATEFortran Statements 55

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

Saved successfully!

Ooh no, something went wrong!