Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

long write splitted in lot of lines

darrigan
Beginner
397 Views
Hi all,

I use IFC 7.

With all Fortran compiler, when I make a

write(6,*) foo(:)

where foo is for example an array of 10 reals, the output contains new lines, instead of only one long line, according to others compilers. (I hope you understand what I want to say...)

Is there a compilating option to avoid this ? Why IFC choose to split my output when it juge it is too long !?!

Thanks.
0 Kudos
1 Reply
Steven_L_Intel1
Employee
397 Views
You are using list-directed formatting (the * format). This tells the compiler that it should format the output for human readability. The Fortran standard gives the compiler a lot of flexibility as to how it does this, including where it chooses to start a new record. Compilers vary as to how they do this.
I am not sure if ifc7.1 supports this, but try opening the unit with a large RECL= value (say, 1000). In 8.0, that sets the right margin for list-directed formatting.
0 Kudos
Reply