I am new to the forum and new to fortran allocated arrays as well:-) I use fortran for my thesis research project.
I have 2 quick questions regarding using xcode with ifort under mountain lion:
1) When I declare an array with fixed dimensions, such as
real(4), dimension(2,3,4,5,6), save::foo1
xcode watch will display foo1 as float.
But instead, if I allocate an array with some dimensions later, such as
real(4), allocatable, dimension(:, :, :) :: foo2
allocate(foo2(2, 3, 4, 5, 6))
Then xcode watch will display foo2 as float.
I tested that the memory is allocated correctly using "print". But the watch does NOT show correct values of array elements. I am wondering if there is a way to make xcode watch work for allocated fortran arrays. Otherwise, it's virtually impossible to debug:-(
2) Fortran supports maximum 7-dimensional arrays. I am curious if ifort compiler supports more than that.
Many thanks in advance!