Dear all,
In a code which I have been trying to generalize,
I have an array of integers for ex.,
A = [1, 2, 3]
then I have multiple do loops as
do i1 = 1, A(1)
do i2 = 1, A(2)
do i3 = 1, A(3)
...
...
enddo
enddo
enddo
I want to generalize this code so that when I the size of the 'A' array is 4 or 5, I can do the same task without changing the code everytime.
Thank you in advance for any help.
regards,
Raghu
In a code which I have been trying to generalize,
I have an array of integers for ex.,
A = [1, 2, 3]
then I have multiple do loops as
do i1 = 1, A(1)
do i2 = 1, A(2)
do i3 = 1, A(3)
...
...
enddo
enddo
enddo
I want to generalize this code so that when I the size of the 'A' array is 4 or 5, I can do the same task without changing the code everytime.
Thank you in advance for any help.
regards,
Raghu