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.

The PAUSE statement stops the program's execution. The program may be restarted later andexecution will then continue with the statement following the PAUSE statement.POINTER 90The POINTER specification statement or attribute declares a scalar variable to be a pointervariable (of type INTEGER), and another variable to be its target pointer-based variable. Thetarget may be a scalar or an array of any type.SyntaxPOINTER [::] object-name [ (deferred-shape-spec-list) ][, object-name [ ( deferred-shape-spec-list ) ]]ExampleREAL, DIMENSION(:,:), POINTER :: XPOINTER (Cray) § 77The POINTER statement is an extension to FORTRAN 77. It declares a scalar variable to be apointer variable (of type INTEGER), and another variable to be its pointer-based variable.SyntaxPOINTER (p1, v1) [, (p2, v2) ...]v1 and v2p1 and p2are pointer-based variables. A pointer-based variable can be of anytype, including STRUCTURE. A pointer-based variable can bedimensioned in a separate type, in a DIMENSION statement, or in thePOINTER statement. The dimension expression may be adjustable,where the rules for adjustable dummy arrays regarding any variableswhich appear in the dimension declarators apply.are the pointer variables corresponding to v1 and v2. A pointer variablemay not be an array. The pointer is an integer variable containing theaddress of a pointer-based variable. The storage located by the pointervariable is defined by the pointer-based variable (for example, array,data type, etc.). A reference to a pointer-based variable appears inFortran statements like a normal variable reference (for example, alocal variable, a COMMON block variable, or a dummy variable).When the based variable is referenced, the address to which it refers isalways taken from its associated pointer (that is, its pointer variable isdereferenced).Fortran Statements 119

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

Saved successfully!

Ooh no, something went wrong!