- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Anyone seen this?
We use Ifort 9.1 on Linux, and lately on winXP as well. The Windows compiler (and good-old-CVF) has no trouble with the source, but the same source on linux throws up this error. Offending statement is 130 characters wide so what follows will appear mangled because of unwanted line-wrap. In addition this forum's text formatter has replaced runs of many spaces with just one space. Anyway here it is:
830 format( &
3X,' Dist. Elev. Horiz. Vert. Pres. Temp. Mean Pressure ',a4,' ',a6,' ',a6,' Densities Slug Flow'/ &
3X,' Angle Devn. Vel. 'A8, ' Flow ',a6,' ',A8, ' Number Pattern'/ &
3X,' ',A6,' ',A7, ' (deg) (deg) ',A6,4x ,A3,' ',A7,' Elev. Frictn. ' ,A8, A8,' Liquid Gas (PI-SS)')
The compiler says:
fortcom: Error: pr_prim.f90, line 196: Tokens may not be continued
across lines
3X,' Angle Devn. Vel. 'A8,
' Flow ',a6,' ',A8, ' Number Pattern'/ &
^
fortcom: Error: pr_prim.f90, line 197: Tokens may not be continued
across lines
3X,' ',A6,' ',A7, ' (deg) (deg) ',A6,4x ,A3,' ',A7,' Elev.
Frictn. ' ,A8, A8,' Liquid Gas (PI-SS)')
^
The compiler is objecting to the second continuation line, the '^' is in column 1. The '3X' starts in column 1. The '&'s at the end of lines are the last characters on the lines, they are not followed by any spaces. There are no embedded tabs in the source.
AHA! just noticed the file attach button in the Options tab. see attached file pr_prim.f90, line 194.
Qolin
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ok Thanks Steve, turns out we are using 9.0 on linux not 9.1. We have 9.1 available so I'll get the systems guys to start using it.
Qolin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Two suggestions from the peanut gallary.
On your continuation line you have
3X,' Angle Devn. Vel. 'A8,...
I would suggest inserting a comma between the literal string and the A8.
Also, I would suggest using the & prefex on the continued lines:
First part of line &
& Second part of line &
&Last part of line.
Jim Dempsey

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