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.

Continuation problem

yusun9
Beginner
505 Views
Hi,
I'm adding new subroutines using Fortran 90 free format to an existing Fotran 77 program. There are some common block files I want to include in the new subroutines. So I add '&' in column 73 wherever there is continuation in the common block filies. As I think Fortran 77 will ingore everything from column 73. However, I got error like:
fortcom: Error: ./COMMON/CONSPECL1.BLOCK, line 93: Syntax error, found '&' when expecting one of: // /
common /SCONINT1/spoimon1,slesid1,sptid1,spoipt1,sib11,sib12, &
------------------------------------------------------------------------^

In the CONSEPCL1.BLOCK, aroud line 93 shows:
! Now gather everything into common blocks
!
common /SCONINT1/spoimon1,slesid1,sptid1,spoipt1,sib11,sib12, &
& siangl11,siangl12,siangl13,stotex1,stotspe1,sspec11, &
& stmon1,snb1,snang1,styp1,sexc11,sexc12,sspec12,snpt1, &
& lz14_1
What's wrong with it? Or what's the correct way to make CONSPECL1.BLOCK be albe to be included in both Fortran 90 and Fortran 77 source code file? I've just used Fotran 90 for two days, forgive my ignorane.
Thanks,
YS
0 Kudos
1 Reply
yusun9
Beginner
505 Views
I found the probelmis probablycaused by 'tab key' betwee & and the variable name.
YS
0 Kudos
Reply