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

generate variables inside program to store 2d arrays

Status
Not open for further replies.

rk_19

Structural
Joined
Aug 7, 2012
Messages
71
Location
AE
Depending on a generated integer 'n' in the program during its execution, i require variables of type k1, k2, k3....kn to be generated in the program. is it possible in fortran - I know allocatable arrays is an option - I have to just declare 'k' as an allocatable 1d array. but my elements in k1, k2..kn are 2d allocatable matrices.. so is it possible to store a 2d array as an element in a 1d array? thanks,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top