- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page