I am using online IDE, and seems that none of them supports debugging. If I have a 4D array like below? How can I print all the elements of the array by the element's order in the memory?
Program Hello
integer :: test(2,3,4,5), i1,i2,i3,i4, val;
val = 0
do i1=1,2
do i2=1,3
do i3=1,4
do i4=1,5
test(i1, i2, i3, i4) = val
val = val +1
end do
end do
end do
end do
End Program Hello