Unrecognized token '&' in Fixed Fortran continuation lines

前端 未结 2 1507
生来不讨喜
生来不讨喜 2020-12-12 01:50

I am editing an old project that uses fixed form Fortran and compiling with IVF compiler. The current issue I have is with continu

相关标签:
2条回答
  • 2020-12-12 02:01

    Or use the compiler switch -free with .for or .f

    Or use the compiler switch -fixed -132 with a .F90 .

    In your case I would preserve the .f and cp that to .F90 and then explicitly have the makefile compile the .F90 ...

    I normally use -fixed -132 with a .F90 as I often have -d-lines that I retain in the code, and I could not get -d-lines. To work with -free.

    0 讨论(0)
  • 2020-12-12 02:28

    In fixed form Fortran, you continue a line with any character in column 6 of the next line, not an & at the end of the 1st line. Try:

          format(//,  10x,'*******************************************',/,
         c  10x,'* DIAGONALS OF THE RESIDUAL COV. MATRIX   *',/,
         c  10x,'*******************************************',//,
         c  2x,'MEASUREMENT',7X,'  RESIDUAL COVARIANCE', /)
    
    0 讨论(0)
提交回复
热议问题