- #1
solarblast
- 152
- 2
I wrote a program that writes arrays in a namelist under MinGW in Win7. The array is 100x2. It is written in two columns, alf(*,1) and then alf(*,2), where * means 100 row elements. It puts out the name of the array followed by a lot of numbers without any alf(1,1), alf(2,1), ..., alf(1,100), alf(1,2),alf(2,2), ..., alf(100,2) notation. Further, the namelist in the output file shows alf = followed by 200 numbers separated by commas. That seems wrong to me. Another fellow I'm working with that uses f90 in Linux claims one should get alf(1,1) = 33.2, alf(2,1) = 84.5, etc., and not just numbers. Perhaps he has a different version of f90.
I wrote a small program dealing with this declaration:
real, dimension(1:5, 1:2) :: astro_data (I didn't use the 1:5 notation in the above pgm)
and filled the elements with numbers. I write the array, then read it back. The result looks the same, and I see no indication of astro_data(int,int)=number.
What's going on here?
I wrote a small program dealing with this declaration:
real, dimension(1:5, 1:2) :: astro_data (I didn't use the 1:5 notation in the above pgm)
and filled the elements with numbers. I write the array, then read it back. The result looks the same, and I see no indication of astro_data(int,int)=number.
What's going on here?