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.

Syntax Derived Type DefinitionTYPE [[ access-spec ] :: ] type-name[ private-sequence-statement ] ...component-definition-statement[ component-definition-statement ]...END TYPE [type-name]FORTRAN 77 Type StatementTYPEThe TYPE statement has the same syntax and effect as the PRINT statement. Refer to the PRINTstatement for a full description.UNION § 77A UNION declaration, a DEC extension to FORTRAN 77, is a multi-statement declarationdefining a data area that can be shared intermittently during program execution by one or morefields or groups of fields. It declares groups of fields that share a common location within astructure. Each group of fields within a union declaration is declared by a map declaration, withone or more fields per map declaration.Union declarations are used when one wants to use the same area of memory to alternately containtwo or more groups of fields. Whenever one of the fields declared by a union declaration isreferenced in a program, that field and any other fields in its map declaration become defined.Then, when a field in one of the other map declarations in the union declaration is referenced, thefields in that map declaration become defined, superseding the fields that were previously defined.A union declaration is initiated by a UNION statement and terminated by an END UNIONstatement. Enclosed within these statements are one or more map declarations, initiated andterminated by MAP and END MAP statements, respectively. Each unique field or group of fieldsis defined by a separate map declaration. The format of a UNION statement is as follows:SyntaxUNIONmap_declaration[map_declaration]...[map_declaration]END UNIONThe format of the map_declaration is as follows:138 Chapter 3

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

Saved successfully!

Ooh no, something went wrong!