Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading the length of a Dimension

Status
Not open for further replies.

Lloydone

Programmer
Jan 17, 2007
41
NZ
Hey all,

could someone tell me how to read the length of a dimension in an array.

Namely say the third dim of :

real,dimension(4) :: testarray(4,180,75,2)

so that the answer is 75

Regards,

Lloyd
 
Look up the docs of your compiler for the intrinsic function 'shape'. This is I think what you are looking for.

Norbert
 
I found the 'size()' function of use here
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top