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.

SyntaxRECURSIVE [type-specification] FUNCTIONorortype-specification RECURSIVE FUNCTIONRECURSIVE SUBROUTINETypeNon-executableSee AlsoFUNCTION, SUBROUTINEREDIMENSION § 77The REDIMENSION statement, a CRAY extension to FORTRAN 77, dynamically defines thebounds of a deferred-shape array. After a REDIMENSION statement, the bounds of the arraybecome those supplied in the statement, until another such statement is encountered.SyntaxREDIMENSION name ([lb:]ub[,[lb:]ub]...)[,name([lb:]ub[,[lb:]ub]...)]...Where:Examplename[lb:]ubis the symbolic name of an array.is a dimension declarator specifying the bounds for a dimension (thelower bound lb and the upper bound ub). lb and ub must be integerswith ub greater than lb. The lower bound lb is optional; if it is notspecified, it is assumed to be 1. The number of dimension declarationsmust be the same as the number of dimensions in the array.REAL A(:, :)POINTER (P, A)P = malloc(12 * 10 * 4)REDIMENSION A(12, 10)A(3, 4) = 33.Fortran Statements 129

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

Saved successfully!

Ooh no, something went wrong!