Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • 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
Aug 7, 2012
71
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