DIMENSION statement

RadSurfer RadSurfer@yahoo.com
Fri Aug 3 01:41:00 GMT 2007


I am wondering what the purpose of the DIMENSION statement actually has...

DIMENTION A(50),B(10)

when used all by itself like that? How can that possibly be used by the compiler?

You then have to follow it with something like
REAL A(50)
INTEGER B(10)

then we have:

REAL, DIMENSION(50) A
which when taken as an entire statement is something the compiler can digust
logically and systematically.

What I am asking is:
   A single lone DIMENSION can't possibly generate any actual code or
pre-processor code can it ?

DIMENSION Statement
      Description
      The DIMENSION statement specifies the shape or rank of an array.
      Syntax
      DIMENSION [::] array-name (array-spec) [, array-name (array-spec)] ...

I don't get this "shape" business at the lone-statement level.
----------------------------------------------------------------------------
If there's a better forum to discuss such "trivial" fortran matters, please
let me know about them.

//Rich//




More information about the Fortran mailing list