Author: qquitoqquito
Date: May 4, 2008 11:26
Dear Everyone:
I use a "Power Mac G5", and "gfortran" compiler for my Fortran 90
codes. (The same compiler also compiles Fortran 95 and 03.)
Recently on two occasions, I attempted to treat the size of an array
as larger than it was defined at the beginning of my Fortran 90 code.
(This was a long code and was modified from an earlier one, and there
were many arrays whose sizes were defined by parameters given in the
same code, so the problem was not easily spotted simply by viewing the
source code.) In other words, it is like
..........................................
integer, parameter:: max=10
real:: a(max)
integer:: i
do i=1, 50
a(i)=float(i)*100.0
enddo
..........................................
|