syntax definition problem

Help
2009-03-12
2013-04-25
  • As in Fortran 77 format, character 'C' is usually used to comment the line instead of '!' in Fortran 90/95, so how to add this 'C' in the syntax_fortran.syn file?
    It seems that make simple change to this line'LineComment=! $' would not work.
    Thanks a lot.

     
    • Please submit a example file.

       
    • I don't know how to upload a attached file, so I stick here a split code.

      C=======================================================================
      C
            REAL FUNCTION VTEMP(TEMP,IDX)
      C     ----------
      C     to solve the v(T)=alpha*exp(beta*TEMP) type relation, in total 14
      C     note that IDX is correlated to the subscript of alpha&beta, and range from 1-14
      C     ----------
            INCLUDE 'biopara.inc'
      C*    ARGUMENTS
            INTEGER IDX
            REAL TEMP
           
            VTEMP=ALPHA(IDX)*EXP(BETA(IDX)*TEMP)/86400.0   ! [ /s]
           
            RETURN
            END

      C=======================================================================

            REAL FUNCTION VTEMPDO(TEMP,IDX1,XDO,IDX2)
      C     ----------
            INCLUDE 'biopara.inc'
      C*    ARGUMENTS
            INTEGER IDX1,IDX2
            REAL TEMP,XDO
           
            VTEMPDO=ALPHA(IDX1)*EXP(BETA(IDX1)*TEMP-GAMA(IDX2)*XDO)/86400.
           
            RETURN
            END

      C=======================================================================