Basic HTML version of Foils prepared 21 Sept 1995

Foil 16 The same program in Free Form syntax
How to declare Array Properties

From New CPS615 Foils-- 28 August 95 CPS615 Basic Simulation Track for Computational Science -- Fall Semester 95. by Nancy McCracken and Geoffrey C. Fox


A number of properties are established by this declaration:
  • The type of the elements is integer.
  • Other possible types are real, logical, char, real*4, real*8 etc.
  • The rank of the array is two (two-dimensional)
  • The extent of the first dimension (the number of elements) is N.
  • The extent of the second dimension is 9
  • If the lower bound is 1, 1:N can be abbreviated as N
  • The shape of the array is [N,9] -- a vector consisting of the extents of the dimensions.
The following Fortran77 declaration is equivalent



© on Tue Oct 7 1997