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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A question about array declarations

Status
Not open for further replies.

torehan

Technical User
Dec 29, 2010
2
TR
Hi all,

I would like to make an array declaration as dimensions of the array will be read from a file. Is that possible?

Thanks
 
Depends on which version of Fortran you are using. If you are using F90, F95 or F2003, it is possible. Just declare the array as allocatable, read in the size of the array and then allocate it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top