I got a question concerning the debugging of a fortran file. Thus I declared it with d(*) automaticaly. However during the debugging and the supervision of the array it just shows the first number of the according array and not the 60 others. (I use Fortran 95 compiler and Visual Studio 2010)
How can I still view all variables of the array?
Okay here comes one example for the code:
ia is a variable integer from the main routine depending on some input parameters.
subroutine abc(ia,a,b,c)
dimension d(*)
a = d(ia+1)
b = d(ia+2)
c = d(ia+3)
return
end
However for debugging it is useful to know the endities of d(*)
REAL d(*)useREAL d(nsize)wherensizeis anINTEGERargument, in which you pass the true size ofdin number of elements (REALhere is just an example data type). Then the debugger should be able to show you the content of the whole array.