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.

4.5 CM Fortran Extensions4.5.1 The ARRAY Attribute §The PGHPF compiler provides several extensions for handling arrays. The compiler handles theCM Fortran attribute ARRAY. The ARRAY attribute is similar to the DIMENSION attribute.Refer to Fortran Data Types for more details on the ARRAY statement.4.5.2 Array Constructors Extensions §The PGHPF compiler supports an extended form of the array constructor specification. In additionto the (/ ../) specification for array constructors, PGHPF supports the notation where [ and] begin and end, respectively, an array constructor.In addition, an array constructor item may be a 'subscript triplet' in the form of an array sectionwhere the values are assigned to the array:lower-bound : upper-bound [ : ]For the values i : j : k the array would be assigned values i, i+k, i+2k, ..., j.If k is not present, stride is assumed to be 1.For example:INTEGER, DIMENSION(20):: K = [1:40:2]150 Chapter 4

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

Saved successfully!

Ooh no, something went wrong!