[hjl@gnu-19 tmp]$ cat x.f90 program foo integer, dimension (1:20):: a a= 0 print *,a end [hjl@gnu-19 tmp]$ /usr/gcc-4.2/bin/gfortran -static x.f90 [hjl@gnu-19 tmp]$ ./a.out 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [hjl@gnu-19 tmp]$ /opt/intel/fc/9.0/bin/ifort x.f90 [hjl@gnu-19 tmp]$ ./a.out 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [hjl@gnu-19 tmp]$
I don't see that much problem with it. It just is not wrapped (the wrapping you are seeing is wrapping done by your termainal and not gfortran/libgfortran).
[jerry@quantum pr27652]$ ./a.out 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 By adjusting my terminal width I can get any number of alignments. This is not a bug or even an enhancement. This is why there are format statements.
The testcase only have 20 elements of 0. The real array has more than 800 elements of complex with different values. I am debugging a gfortran bug. Since gdb isn't really useful, I am using "print *," to see what are in the array. Gfortran outputs a very long line. It is very hard to exam/compare what are in the array. It will be nice for "print *" to break the line if the line is over 80 chars.
redirect the output to a file and then read the file with a real editor.
also do something like this: print "(5(f10))", a you will get a new line after every 5 values printed.
Oops, I forgot the period. You need to match the width and precsion you want printed. For complex maybe you want to use 6 or 8 instead of the 5 for repeat count. print "(5(f10.4))", a